summaryrefslogtreecommitdiff
path: root/common/icmp.c
diff options
context:
space:
mode:
authorMurray <source@isc.org>2002-06-09 22:16:34 +0000
committerMurray <source@isc.org>2002-06-09 22:16:34 +0000
commitcd6568057eb0236b9bbdbab275d06b3bb71f2dca (patch)
tree32bbd2f4ff8d5f2ae687881a8dcba38d78042dea /common/icmp.c
parentd1d0d78ad503efe7197b5a3b5b3e20cdb770470f (diff)
downloadisc-dhcp-cd6568057eb0236b9bbdbab275d06b3bb71f2dca.tar.gz
Properly initialize sockaddr to 0.
Submitted by: Jun-ichiro itojun Hagino <itojun@iijlab.net> RT #: 3040
Diffstat (limited to 'common/icmp.c')
-rw-r--r--common/icmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/icmp.c b/common/icmp.c
index ed208d5d..032ffad5 100644
--- a/common/icmp.c
+++ b/common/icmp.c
@@ -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