Merge branch '4629-cid-487882-error-handling-issues' into 'main'

Resolve "CID 487882: Error handling issues in lib/dns/qpzone.c"

Closes #4629

See merge request isc-projects/bind9!8852
This commit is contained in:
Matthijs Mekking 2024-03-14 14:12:57 +00:00
commit 78aa2fb64c

View file

@ -2786,7 +2786,11 @@ activeempty(qpdb_search_t *search, dns_qpiter_t *it,
* subdomain of the one we were looking for, then we're
* at an active empty nonterminal node.
*/
dns_qpiter_next(it, NULL, NULL, NULL);
isc_result_t result = dns_qpiter_next(it, NULL, NULL, NULL);
if (result != ISC_R_SUCCESS) {
/* An ENT at the end of the zone is impossible */
return (false);
}
return (step(search, it, FORWARD, next) &&
dns_name_issubdomain(next, current));
}