Commit edaa77bc authored by Linus Nordberg's avatar Linus Nordberg

Don't free struct clsrvconf members rewritein and rewriteout.

They are pointers into static struct hash *rewriteconfs and should
live forever.

Patch by Fabian Mauchle.
parent 6fe53399
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
Bug fixes: Bug fixes:
- The duplication cache is purged properly. Patch by Fabian - The duplication cache is purged properly. Patch by Fabian
Mauchle. Mauchle.
- Stop freeing a shared piece of memory manifesting itself as a
crash when using dynamic discovery. Patch by Fabian Mauchle.
2012-10-25 1.6.2 2012-10-25 1.6.2
Bug fixes (security): Bug fixes (security):
......
...@@ -2646,8 +2646,8 @@ void freeclsrvconf(struct clsrvconf *conf) { ...@@ -2646,8 +2646,8 @@ void freeclsrvconf(struct clsrvconf *conf) {
free(conf->rewriteusername); free(conf->rewriteusername);
} }
free(conf->dynamiclookupcommand); free(conf->dynamiclookupcommand);
free(conf->rewritein); conf->rewritein=NULL;
free(conf->rewriteout); conf->rewriteout=NULL;
if (conf->hostports) if (conf->hostports)
freehostports(conf->hostports); freehostports(conf->hostports);
if (conf->lock) { if (conf->lock) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment