]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Properly handle record_found() errors
authorMichał Kępień <michal@isc.org>
Fri, 15 Jun 2018 07:59:20 +0000 (09:59 +0200)
committerMichał Kępień <michal@isc.org>
Fri, 15 Jun 2018 08:34:38 +0000 (10:34 +0200)
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

index b6eb433f9e2dcc4732345de8a7f095cb35e36657..7ab3906e52e6f6a3a0e8df3c862a6a23cd14a46a 100644 (file)
@@ -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;