mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00: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.
This commit is contained in:
@@ -1718,7 +1718,7 @@ update_nodes(dns_rpz_zone_t *rpz, isc_ht_t *newnodes) {
|
|||||||
DNS_LOGMODULE_MASTER, ISC_LOG_ERROR,
|
DNS_LOGMODULE_MASTER, ISC_LOG_ERROR,
|
||||||
"rpz: %s: failed to create DB iterator - %s",
|
"rpz: %s: failed to create DB iterator - %s",
|
||||||
domain, isc_result_totext(result));
|
domain, isc_result_totext(result));
|
||||||
goto cleanup;
|
return (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
result = dns_dbiterator_first(updbit);
|
result = dns_dbiterator_first(updbit);
|
||||||
|
Reference in New Issue
Block a user