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

This commit is contained in:
Ondřej Surý
2019-10-01 10:43:26 +10:00
committed by Mark Andrews
parent c2dad0dcb2
commit 69ecc711ac
+4 -7
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) {