]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add insist to try to prevent coverity false positive
authorMark Andrews <marka@isc.org>
Wed, 3 Apr 2013 06:37:15 +0000 (17:37 +1100)
committerMark Andrews <marka@isc.org>
Wed, 3 Apr 2013 06:37:41 +0000 (17:37 +1100)
lib/dns/adb.c

index aee7b85c4946ad2aab24a98f0803a0e0ce5be712..ef7875dcb46baf9307c9478876a076ae50de8f78 100644 (file)
@@ -1286,6 +1286,7 @@ clean_namehooks(dns_adb_t *adb, dns_adbnamehooklist_t *namehooks) {
                                if (addr_bucket != DNS_ADB_INVALIDBUCKET)
                                        UNLOCK(&adb->entrylocks[addr_bucket]);
                                addr_bucket = entry->lock_bucket;
+                               INSIST(addr_bucket != DNS_ADB_INVALIDBUCKET);
                                LOCK(&adb->entrylocks[addr_bucket]);
                        }