result = dns_dbiterator_seek(dbit, hashname);
if (result == ISC_R_NOTFOUND || result == DNS_R_PARTIALMATCH) {
- goto success;
+ goto cleanup_orphaned_ents;
}
if (result != ISC_R_SUCCESS) {
goto failure;
(isc_stdtime_t)0, &rdataset, NULL);
dns_db_detachnode(db, &node);
if (result == ISC_R_NOTFOUND) {
- goto success;
+ goto cleanup_orphaned_ents;
}
if (result != ISC_R_SUCCESS) {
goto failure;
/*
* Delete NSEC3 records for now non active nodes.
*/
+cleanup_orphaned_ents:
dns_name_init(&empty, NULL);
dns_name_clone(name, &empty);
do {