From: Ted Lemon Date: Sun, 24 Oct 1999 18:55:37 +0000 (+0000) Subject: Fix a null pointer dereference. X-Git-Tag: BCTEL_SPECIAL_19991124~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c398d02cf050203dfca533140a3fd025a6f15c77;p=thirdparty%2Fdhcp.git Fix a null pointer dereference. --- diff --git a/server/dhcp.c b/server/dhcp.c index 3d983a08a..ef1a78070 100644 --- a/server/dhcp.c +++ b/server/dhcp.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: dhcp.c,v 1.123 1999/10/24 18:54:11 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dhcp.c,v 1.124 1999/10/24 18:55:37 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -430,7 +430,7 @@ void dhcpinform (packet) It would be nice if a per-host value could override this, but there's overhead involved in checking this, so let's see how people react first. */ - if (!subnet -> group -> authoritative) { + if (subnet && !subnet -> group -> authoritative) { log_info ("%s: not authoritative for subnet %s", msgbuf, piaddr (subnet -> net)); return;