diff --git a/lib/dns/zoneverify.c b/lib/dns/zoneverify.c index b6eb433f9e..7ab3906e52 100644 --- a/lib/dns/zoneverify.c +++ b/lib/dns/zoneverify.c @@ -1744,8 +1744,11 @@ verify_nodes(vctx_t *vctx, isc_result_t *vresult) { dns_db_detachnode(vctx->db, &node); goto done; } - record_found(vctx, name, node, &vctx->nsec3paramset); + result = record_found(vctx, name, node, &vctx->nsec3paramset); dns_db_detachnode(vctx->db, &node); + if (result != ISC_R_SUCCESS) { + goto done; + } } result = ISC_R_SUCCESS;