diff --git a/CHANGES b/CHANGES index 73f4563bea..128bf80600 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 d4cbbf1819..3d2901997e 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); }