mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 22:05:23 +00:00
Initialize option cache pointer prior to use.
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: bootp.c,v 1.41 1999/03/16 05:50:42 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: bootp.c,v 1.42 1999/03/30 18:12:34 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -180,6 +180,7 @@ void bootp (packet)
|
|||||||
/* Figure out the address of the next server. */
|
/* Figure out the address of the next server. */
|
||||||
raw.siaddr = (lease -> subnet -> shared_network ->
|
raw.siaddr = (lease -> subnet -> shared_network ->
|
||||||
interface -> primary_address);
|
interface -> primary_address);
|
||||||
|
memset (&d1, 0, sizeof d1);
|
||||||
oc = lookup_option (options.dhcp_hash, SV_NEXT_SERVER);
|
oc = lookup_option (options.dhcp_hash, SV_NEXT_SERVER);
|
||||||
if (oc &&
|
if (oc &&
|
||||||
evaluate_option_cache (&d1, packet, &options, oc)) {
|
evaluate_option_cache (&d1, packet, &options, oc)) {
|
||||||
|
Reference in New Issue
Block a user