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

index 1f8bd291ad94b86ba47256f20c941cf1cc7b37c7..28b8dfd7d588436aaf4d7091a069e16cf3e1af88 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: adb.c,v 1.181.2.11.2.39 2008/05/05 23:45:30 tbox Exp $ */
+/* $Id: adb.c,v 1.181.2.11.2.40 2008/10/15 04:26:35 marka Exp $ */
 
 /*
  * Implementation notes
@@ -3132,8 +3132,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;