Skip to content

Commit

Permalink
Don't free memory which others are still using.
Browse files Browse the repository at this point in the history
In the error case in confserver_cb() where compileserverconfig() we
used to go to errexit and have resonf, passed as an argument through
ARG, freed.  Other parts are still using that conf.
  • Loading branch information
Linus Nordberg committed Apr 9, 2012
1 parent f41042e commit ed6f9b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radsecproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2944,7 +2944,8 @@ int confserver_cb(struct gconffile **cf, void *arg, char *block, char *opt, char

if (resconf || !conf->dynamiclookupcommand) {
if (!compileserverconfig(conf, block))
goto errexit;
return 0; /* Don't goto errexit and free resconf -- it's
* not ours to free. */
}

if (!conf->secret) {
Expand Down

0 comments on commit ed6f9b4

Please sign in to comment.