]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence coverity false positive
authorMark Andrews <marka@isc.org>
Wed, 15 Oct 2008 04:26:22 +0000 (04:26 +0000)
committerMark Andrews <marka@isc.org>
Wed, 15 Oct 2008 04:26:22 +0000 (04:26 +0000)
lib/dns/adb.c

index 7b642e901c958789f8f70482eacef41861258067..133458361f730d0c8d0c500b2fda3c03533e842c 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: adb.c,v 1.215.18.22 2008/05/05 23:46:05 tbox Exp $ */
+/* $Id: adb.c,v 1.215.18.23 2008/10/15 04:26:22 marka Exp $ */
 
 /*! \file
  *
@@ -3143,8 +3143,10 @@ fetch_callback(isc_task_t *task, isc_event_t *ev) {
                address_type = DNS_ADBFIND_INET6;
                fetch = name->fetch_aaaa;
                name->fetch_aaaa = NULL;
-       }
-       INSIST(address_type != 0);
+       } else
+               fetch = NULL;
+
+       INSIST(address_type != 0 && fetch != NULL);
 
        dns_resolver_destroyfetch(&fetch->fetch);
        dev->fetch = NULL;