From: Mark Andrews Date: Wed, 3 Apr 2013 06:37:15 +0000 (+1100) Subject: add insist to try to prevent coverity false positive X-Git-Tag: v9.10.0a1~448^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1fb5abb506f6389f4d093b5066c9436b0ad3b2f;p=thirdparty%2Fbind9.git add insist to try to prevent coverity false positive --- diff --git a/lib/dns/adb.c b/lib/dns/adb.c index d07ce03470a..c5c14e5de97 100644 --- a/lib/dns/adb.c +++ b/lib/dns/adb.c @@ -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]); }