1847. [bug] isc_ondestroy_init() is called too late in
in dns_rbtdb_create()/dns_rbtdb_create().
[RT #13661]
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
1847. [bug] isc_ondestroy_init() is called too late in
|
||||
in dns_rbtdb_create()/dns_rbtdb_create().
|
||||
[RT #13661]
|
||||
|
||||
1846. [contrib] query-loc-0.3.0 from Stephane Bortzmeyer
|
||||
<bortzmeyer@nic.fr>.
|
||||
|
||||
|
||||
+6
-3
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rbtdb.c,v 1.168.2.20 2005/03/16 00:57:42 marka Exp $ */
|
||||
/* $Id: rbtdb.c,v 1.168.2.21 2005/04/01 07:05:06 marka Exp $ */
|
||||
|
||||
/*
|
||||
* Principal Author: Bob Halley
|
||||
@@ -4631,6 +4631,11 @@ dns_rbtdb_create
|
||||
*/
|
||||
isc_mem_attach(mctx, &rbtdb->common.mctx);
|
||||
|
||||
/*
|
||||
* Must be initalized before free_rbtdb() is called.
|
||||
*/
|
||||
isc_ondestroy_init(&rbtdb->common.ondest);
|
||||
|
||||
/*
|
||||
* Make a copy of the origin name.
|
||||
*/
|
||||
@@ -4709,8 +4714,6 @@ dns_rbtdb_create
|
||||
rbtdb->future_version = NULL;
|
||||
ISC_LIST_INIT(rbtdb->open_versions);
|
||||
|
||||
isc_ondestroy_init(&rbtdb->common.ondest);
|
||||
|
||||
rbtdb->common.magic = DNS_DB_MAGIC;
|
||||
rbtdb->common.impmagic = RBTDB_MAGIC;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user