From: Mark Andrews Date: Wed, 8 May 2002 06:34:30 +0000 (+0000) Subject: 1283. [bug] Reference after free error if dns_dispatchmgr_create() X-Git-Tag: v9.0.1^2~8374 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=ddc592d128cdde85ada64efbda95981c10c4c03c;p=thirdparty%2Fbind9.git 1283. [bug] Reference after free error if dns_dispatchmgr_create() failed. --- diff --git a/CHANGES b/CHANGES index 73f4563bea6..128bf806003 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1283. [bug] Reference after free error if dns_dispatchmgr_create() + failed. + 1282. [bug] ns_server_destroy() failed to set *serverp to NULL. 1281. [func] libbind: ns_sign2() and ns_sign_tcp() now provide diff --git a/lib/dns/dispatch.c b/lib/dns/dispatch.c index d4cbbf18192..3d2901997ee 100644 --- a/lib/dns/dispatch.c +++ b/lib/dns/dispatch.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dispatch.c,v 1.107 2002/03/07 00:07:27 marka Exp $ */ +/* $Id: dispatch.c,v 1.108 2002/05/08 06:34:30 marka Exp $ */ #include @@ -1115,7 +1115,7 @@ dns_dispatchmgr_create(isc_mem_t *mctx, isc_entropy_t *entropy, DESTROYLOCK(&mgr->lock); deallocate: isc_mem_put(mctx, mgr, sizeof(dns_dispatchmgr_t)); - isc_mem_detach(&mgr->mctx); + isc_mem_detach(&mctx); return (result); }