Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.sbin/dhcp/common Pullup 1.2 [tron]:
details: https://anonhg.NetBSD.org/src/rev/9bcc225cc53e
branches: netbsd-1-5
changeset: 490015:9bcc225cc53e
user: tv <tv%NetBSD.org@localhost>
date: Mon Oct 30 23:02:59 2000 +0000
description:
Pullup 1.2 [tron]:
Patch from Takahiro Kambe to fix crashes if dynamic DNS updates
are used. This fixes PR bin/10665 by Mason Loring Bliss.
diffstat:
usr.sbin/dhcp/common/dns.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 0165043d464f -r 9bcc225cc53e usr.sbin/dhcp/common/dns.c
--- a/usr.sbin/dhcp/common/dns.c Mon Oct 30 23:01:17 2000 +0000
+++ b/usr.sbin/dhcp/common/dns.c Mon Oct 30 23:02:59 2000 +0000
@@ -42,7 +42,7 @@
#ifndef lint
static char copyright[] =
-"$Id: dns.c,v 1.1.1.5.2.2 2000/10/18 04:11:04 tv Exp $ Copyright (c) 2000 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dns.c,v 1.1.1.5.2.3 2000/10/30 23:02:59 tv Exp $ Copyright (c) 2000 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -401,7 +401,6 @@
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 @@
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;
Home |
Main Index |
Thread Index |
Old Index