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

index 96c42603839aa575b7ca1a071a3d8fe2e0f72839..f06b4a8b8a90450049fe1aad56c9bacea10ef554 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: adb.c,v 1.241 2008/05/03 05:07:13 marka Exp $ */
+/* $Id: adb.c,v 1.242 2008/10/15 04:22:30 marka Exp $ */
 
 /*! \file
  *
@@ -3127,8 +3127,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;