CVSROOT:        /cvs
Module name:    src
Changes by:     js...@cvs.openbsd.org   2015/07/15 08:39:13

Modified files:
        usr.sbin/httpd : config.c server.c 

Log message:
Fix memory leaks that can occur when config_getserver() fails.

config.c r1.34 and r1.30 introduced potential memory leaks for auth and
return_uri when config_getserver fails. Fix this by switching to
serverconfig_free() and adding the missing free for srv_conf->auth.
While here, make serverconfig_free() a little more bulletproof by
explicit_bzero()ing key material.

ok reyk@

Reply via email to