]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Properly initialize sockaddr to 0.
authorMurray <source@isc.org>
Sun, 9 Jun 2002 22:16:34 +0000 (22:16 +0000)
committerMurray <source@isc.org>
Sun, 9 Jun 2002 22:16:34 +0000 (22:16 +0000)
Submitted by: Jun-ichiro itojun Hagino <itojun@iijlab.net>
RT #: 3040

common/icmp.c

index ed208d5d0100125175d6d5f1ef9f80438f855d53..032ffad5769596f41b360ff5fd029b1ac5d962d8 100644 (file)
@@ -44,7 +44,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: icmp.c,v 1.31 2001/06/27 00:29:49 mellon Exp $ Copyright (c) 1996-2001 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: icmp.c,v 1.32 2002/06/09 22:16:34 murray Exp $ Copyright (c) 1996-2001 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -163,6 +163,7 @@ int icmp_echorequest (addr)
        if (!icmp_state)
                log_fatal ("ICMP protocol used before initialization.");
 
+       memset (&to, 0, sizeof(to));
 #ifdef HAVE_SA_LEN
        to.sin_len = sizeof to;
 #endif