Commit a8f1c013 authored by Mark Andrews's avatar Mark Andrews
Browse files

1847. [bug] isc_ondestroy_init() is called too late in

                        in dns_rbtdb_create()/dns_rbtdb_create().
                        [RT #13661]
parent 959fb010
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>.
......
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rbtdb.c,v 1.204 2005/03/18 05:55:36 marka Exp $ */
/* $Id: rbtdb.c,v 1.205 2005/04/01 07:00:34 marka Exp $ */
/*
* Principal Author: Bob Halley
......@@ -5089,6 +5089,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.
*/
......@@ -5167,8 +5172,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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment