mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Fix an error path bug in rpz.c:update_nodes()
When dns_db_createiterator() fails, 'updbit' should not be destroyed
for obvious reasons, i.e. it is NULL.
(cherry picked from commit ef4f15d2d1)
This commit is contained in:
parent
c72b19b5e8
commit
c3a4e14243
1 changed files with 1 additions and 1 deletions
|
|
@ -1725,7 +1725,7 @@ update_nodes(dns_rpz_zone_t *rpz, isc_ht_t *newnodes) {
|
|||
DNS_LOGMODULE_MASTER, ISC_LOG_ERROR,
|
||||
"rpz: %s: failed to create DB iterator - %s",
|
||||
domain, isc_result_totext(result));
|
||||
goto cleanup;
|
||||
return (result);
|
||||
}
|
||||
|
||||
result = dns_dbiterator_first(updbit);
|
||||
|
|
|
|||
Loading…
Reference in a new issue