From: Michał Kępień Date: Fri, 15 Jun 2018 07:59:20 +0000 (+0200) Subject: Properly handle record_found() errors X-Git-Tag: v9.13.2~31^2~6 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=11a552a61457aa49c68d9da98db2fca21ee84c9e;p=thirdparty%2Fbind9.git Properly handle record_found() errors record_found() returns an isc_result_t, but its value is not checked. Modify the only call site of record_found() so that its errors are properly handled. --- diff --git a/lib/dns/zoneverify.c b/lib/dns/zoneverify.c index b6eb433f9e2..7ab3906e52e 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;