Skip to content

Commit

Permalink
Don't free struct clsrvconf members rewritein and rewriteout.
Browse files Browse the repository at this point in the history
They are pointers into static struct hash *rewriteconfs and should
live forever.

Patch by Fabian Mauchle.
  • Loading branch information
Linus Nordberg committed Sep 2, 2013
1 parent 6fe5339 commit edaa77b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions radsecproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit edaa77b

Please sign in to comment.