mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-29 13:28:14 +00:00
Fix a null pointer dereference.
This commit is contained in:
parent
db2ed553d5
commit
c398d02cf0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user