From 11a552a61457aa49c68d9da98db2fca21ee84c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Fri, 15 Jun 2018 09:59:20 +0200 Subject: [PATCH] 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. --- lib/dns/zoneverify.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;