mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-16 00:12:51 -04:00
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:
commit
78aa2fb64c
1 changed files with 5 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue