From: Damien Neil Date: Thu, 2 Nov 2000 00:04:40 +0000 (+0000) Subject: Applied fix from bug #427: cache_found_zone() was callign dns_zone_lookup() X-Git-Tag: V3-BETA-1-PATCH-11~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1befbaa3ac1fbd92a60ebf1f1e2a157e4c60c94;p=thirdparty%2Fdhcp.git Applied fix from bug #427: cache_found_zone() was callign dns_zone_lookup() with an uninitialized value. --- diff --git a/common/dns.c b/common/dns.c index ef423cef2..9b55dfed3 100644 --- a/common/dns.c +++ b/common/dns.c @@ -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;