mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-20 21:58:03 -04:00
initialize the dbtable's rbt pointer to null before dns_rbt_create
This commit is contained in:
parent
454bea884d
commit
d84aa53079
1 changed files with 6 additions and 1 deletions
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
|
||||
/*
|
||||
* $Id: dbtable.c,v 1.7 1999/05/11 23:18:37 halley Exp $
|
||||
* $Id: dbtable.c,v 1.8 1999/05/25 18:41:52 tale Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
|
@ -66,6 +66,11 @@ dns_dbtable_create(isc_mem_t *mctx, dns_rdataclass_t rdclass,
|
|||
if (dbtable == NULL)
|
||||
return (DNS_R_NOMEMORY);
|
||||
|
||||
/*
|
||||
* The pointer to the RBT needs to definitely be NULL to make
|
||||
* dns_rbt_create happy.
|
||||
*/
|
||||
dbtable->rbt = NULL;
|
||||
result = dns_rbt_create(mctx, NULL, NULL, &dbtable->rbt);
|
||||
if (result != DNS_R_SUCCESS)
|
||||
goto clean1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue