]> 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:47 +0000 (17:37 +1100)
lib/dns/adb.c

index c3ba42d01cf13b049c68df2268803f78493a8b4e..6aa5e5a730d5badd1b649b6cb0ce990c5ce9dd55 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]);
                        }