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 @@
Bug fixes:
- The duplication cache is purged properly. Patch by Fabian
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
Bug fixes (security):
......
......@@ -2646,8 +2646,8 @@ void freeclsrvconf(struct clsrvconf *conf) {
free(conf->rewriteusername);
}
free(conf->dynamiclookupcommand);
free(conf->rewritein);
free(conf->rewriteout);
conf->rewritein=NULL;
conf->rewriteout=NULL;
if (conf->hostports)
freehostports(conf->hostports);
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