]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix a null pointer dereference.
authorTed Lemon <source@isc.org>
Sun, 24 Oct 1999 18:55:37 +0000 (18:55 +0000)
committerTed Lemon <source@isc.org>
Sun, 24 Oct 1999 18:55:37 +0000 (18:55 +0000)
server/dhcp.c

index 3d983a08a8994c96a9370fa0bdbb34461ce9adde..ef1a7807021945b91aadeccf8ec5998958dfab01 100644 (file)
@@ -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;