Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3-0]: src/dist/bind/lib/dns Pull up following revision(s) (reques...



details:   https://anonhg.NetBSD.org/src/rev/09273404a681
branches:  netbsd-3-0
changeset: 579382:09273404a681
user:      tron <tron%NetBSD.org@localhost>
date:      Sun Feb 11 13:21:28 2007 +0000

description:
Pull up following revision(s) (requested by adrianp in ticket #1664):
        dist/bind/lib/dns/adb.c: revision 1.2
Coverity CID 2486: Fix uninitialized variable

diffstat:

 dist/bind/lib/dns/adb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f4590b935135 -r 09273404a681 dist/bind/lib/dns/adb.c
--- a/dist/bind/lib/dns/adb.c   Sun Feb 11 13:20:53 2007 +0000
+++ b/dist/bind/lib/dns/adb.c   Sun Feb 11 13:21:28 2007 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: adb.c,v 1.1.1.2.4.1 2007/02/10 19:20:52 tron Exp $     */
+/*     $NetBSD: adb.c,v 1.1.1.2.4.2 2007/02/11 13:21:28 tron Exp $     */
 
 /*
  * Copyright (C) 2004, 2005  Internet Systems Consortium, Inc. ("ISC")
@@ -3094,7 +3094,7 @@
        dns_fetchevent_t *dev;
        dns_adbname_t *name;
        dns_adb_t *adb;
-       dns_adbfetch_t *fetch;
+       dns_adbfetch_t *fetch = NULL;
        int bucket;
        isc_eventtype_t ev_status;
        isc_stdtime_t now;
@@ -3126,7 +3126,7 @@
                fetch = name->fetch_aaaa;
                name->fetch_aaaa = NULL;
        }
-       INSIST(address_type != 0);
+       INSIST(address_type != 0 && fetch != NULL);
 
        dns_resolver_destroyfetch(&fetch->fetch);
        dev->fetch = NULL;



Home | Main Index | Thread Index | Old Index