]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Initialize hardware buffer before using it, just in case.
authorTed Lemon <source@isc.org>
Tue, 16 Jan 2001 22:46:01 +0000 (22:46 +0000)
committerTed Lemon <source@isc.org>
Tue, 16 Jan 2001 22:46:01 +0000 (22:46 +0000)
server/confpars.c

index 92d980284ae12890ac50398f8a239d58b71aaad4..d0aa3bd4cbb9c8498cf25433fbd512dcbe1d1765 100644 (file)
@@ -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;