summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1999-10-27 20:41:01 +0000
committerTed Lemon <source@isc.org>1999-10-27 20:41:01 +0000
commitb2f942759c0d4fb4ff3c878a4b6cbbcc2f294bcc (patch)
tree75ee082d2a521b1cefc6db1099c2fe8fae1ccb64 /server
parent5762880ae1e83870f8e25b7cd147e7a800d095fa (diff)
downloadisc-dhcp-b2f942759c0d4fb4ff3c878a4b6cbbcc2f294bcc.tar.gz
Fix a null pointer dereference.
Diffstat (limited to 'server')
-rw-r--r--server/dhcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/dhcp.c b/server/dhcp.c
index c2a99cb6..20fbac30 100644
--- a/server/dhcp.c
+++ b/server/dhcp.c
@@ -22,7 +22,7 @@
#ifndef lint
static char copyright[] =
-"$Id: dhcp.c,v 1.100.2.8 1999/10/25 18:51:35 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dhcp.c,v 1.100.2.9 1999/10/27 20:41:01 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -395,7 +395,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;