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

index d07ce03470a4251e3e95aad040809ccde867be29..c5c14e5de97680dacb84bb293042423c8bfab3e0 100644 (file)
@@ -1311,6 +1311,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]);
                        }