]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Applied fix from bug #427: cache_found_zone() was callign dns_zone_lookup()
authorDamien Neil <source@isc.org>
Thu, 2 Nov 2000 00:04:40 +0000 (00:04 +0000)
committerDamien Neil <source@isc.org>
Thu, 2 Nov 2000 00:04:40 +0000 (00:04 +0000)
with an uninitialized value.

common/dns.c

index ef423cef2209d22281706644a5b93ea5c4995008..9b55dfed3dff5bab323006b691edb22f6c39e77a 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dns.c,v 1.29 2000/10/12 08:58:11 mellon Exp $ Copyright (c) 2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dns.c,v 1.30 2000/11/02 00:04:40 neild Exp $ Copyright (c) 2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -401,7 +401,6 @@ void cache_found_zone (ns_class class,
                       char *zname, struct in_addr *addrs, int naddrs)
 {
        isc_result_t status = ISC_R_NOTFOUND;
-       const char *np;
        struct dns_zone *zone = (struct dns_zone *)0;
        struct data_string nsaddrs;
        int ix = strlen (zname);
@@ -410,7 +409,7 @@ void cache_found_zone (ns_class class,
                ix = 0;
 
        /* See if there's already such a zone. */
-       if (dns_zone_lookup (&zone, np) == ISC_R_SUCCESS) {
+       if (dns_zone_lookup (&zone, zname) == ISC_R_SUCCESS) {
                /* If it's not a dynamic zone, leave it alone. */
                if (!zone -> timeout)
                        return;