Move the failure handling block closer to the only place where it could fail

This commit is contained in:
Ondřej Surý 2019-09-13 10:52:06 +02:00 committed by Mark Andrews
parent c2dad0dcb2
commit 69ecc711ac

View file

@ -4528,15 +4528,12 @@ find_deepest_zonecut(rbtdb_search_t *search, dns_rbtnode_t *node,
foundname,
NULL);
if (result != ISC_R_SUCCESS) {
break;
if (nodep != NULL) {
*nodep = NULL;
}
goto node_exit;
}
}
if (result != ISC_R_SUCCESS) {
if (nodep != NULL) {
*nodep = NULL;
}
goto node_exit;
}
}
result = DNS_R_DELEGATION;
if (nodep != NULL) {