From: Ted Lemon Date: Tue, 16 Jan 2001 22:46:01 +0000 (+0000) Subject: Initialize hardware buffer before using it, just in case. X-Git-Tag: V3-BETA-2-PATCH-12~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76981d9fcc1ff0408c897ce85dcff1c8572ac5ec;p=thirdparty%2Fdhcp.git Initialize hardware buffer before using it, just in case. --- diff --git a/server/confpars.c b/server/confpars.c index 92d980284..d0aa3bd4c 100644 --- a/server/confpars.c +++ b/server/confpars.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: confpars.c,v 1.129 2001/01/11 23:15:31 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: confpars.c,v 1.130 2001/01/16 22:46:01 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -378,6 +378,7 @@ int parse_statement (cfile, group, type, host_decl, declaration) case HARDWARE: next_token (&val, cfile); + memset (&hardware, 0, sizeof hardware); parse_hardware_param (cfile, &hardware); if (host_decl) host_decl -> interface = hardware;