mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-27 12:02:10 -05:00
createiterator() failed to set rbtdbiter->common.db
to NULL before attaching it
This commit is contained in:
parent
70bdf57594
commit
2821f5aeab
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rbtdb.c,v 1.114 2000/08/03 19:46:34 bwelling Exp $ */
|
||||
/* $Id: rbtdb.c,v 1.115 2000/08/08 21:41:58 gson Exp $ */
|
||||
|
||||
/*
|
||||
* Principal Author: Bob Halley
|
||||
|
|
@ -2799,6 +2799,7 @@ createiterator(dns_db_t *db, isc_boolean_t relative_names,
|
|||
return (ISC_R_NOMEMORY);
|
||||
|
||||
rbtdbiter->common.methods = &dbiterator_methods;
|
||||
rbtdbiter->common.db = NULL;
|
||||
dns_db_attach(db, &rbtdbiter->common.db);
|
||||
rbtdbiter->common.relative_names = relative_names;
|
||||
rbtdbiter->common.magic = DNS_DBITERATOR_MAGIC;
|
||||
|
|
|
|||
Loading…
Reference in a new issue