summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp/common/icmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/dhcp/common/icmp.c')
-rw-r--r--usr.sbin/dhcp/common/icmp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/dhcp/common/icmp.c b/usr.sbin/dhcp/common/icmp.c
index d64aef0ab44..c554e80c8d9 100644
--- a/usr.sbin/dhcp/common/icmp.c
+++ b/usr.sbin/dhcp/common/icmp.c
@@ -94,6 +94,7 @@ int icmp_echorequest (addr)
if (!icmp_protocol_initialized)
error ("attempt to use ICMP protocol before initialization.");
+ memset(&to, 0, sizeof to);
to.sin_len = sizeof to;
to.sin_family = AF_INET;
to.sin_port = 0; /* unused. */