add insist to try to prevent coverity false positive

This commit is contained in:
Mark Andrews 2013-04-03 17:37:15 +11:00
parent c51fe7894a
commit 92da7a90dc

View 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]);
}