From: Ted Lemon Date: Tue, 30 Mar 1999 18:12:34 +0000 (+0000) Subject: Initialize option cache pointer prior to use. X-Git-Tag: V3-ALPHA-19990330~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e40810bf9d66bdf8255bca45da7491617ecdb89b;p=thirdparty%2Fdhcp.git Initialize option cache pointer prior to use. --- diff --git a/server/bootp.c b/server/bootp.c index 27f664f56..3ddf2aa48 100644 --- a/server/bootp.c +++ b/server/bootp.c @@ -22,7 +22,7 @@ #ifndef lint 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 */ #include "dhcpd.h" @@ -180,6 +180,7 @@ void bootp (packet) /* Figure out the address of the next server. */ raw.siaddr = (lease -> subnet -> shared_network -> interface -> primary_address); + memset (&d1, 0, sizeof d1); oc = lookup_option (options.dhcp_hash, SV_NEXT_SERVER); if (oc && evaluate_option_cache (&d1, packet, &options, oc)) {