diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-06-10 00:39:47 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-06-10 00:39:47 +0000 |
commit | 8c913293005db33c671612618dda7a754cf05ff8 (patch) | |
tree | deeda1e0603c4c93cc2a63682ac6e20cfb2f5572 /usr.sbin/dhcp/dhclient | |
parent | f7d6d89cb8589b3578ec61958687a446570db823 (diff) |
more sockaddr initializations.
Diffstat (limited to 'usr.sbin/dhcp/dhclient')
-rw-r--r-- | usr.sbin/dhcp/dhclient/dhclient.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/dhcp/dhclient/dhclient.c b/usr.sbin/dhcp/dhclient/dhclient.c index 5f3492a5c2c..ac013d02fc8 100644 --- a/usr.sbin/dhcp/dhclient/dhclient.c +++ b/usr.sbin/dhcp/dhclient/dhclient.c @@ -207,6 +207,7 @@ int main (argc, argv, envp) /* Get the current time... */ GET_TIME(&cur_time); + memset(&sockaddr_broadcast, 0, sizeof(sockaddr_broadcast)); sockaddr_broadcast.sin_family = AF_INET; sockaddr_broadcast.sin_port = remote_port; sockaddr_broadcast.sin_addr.s_addr = INADDR_BROADCAST; @@ -1329,6 +1330,7 @@ void send_request (ipp) /* If the lease T2 time has elapsed, or if we're not yet bound, broadcast the DHCPREQUEST rather than unicasting. */ + memset(&destination, 0, sizeof(destination)); if (ip->client->state == S_REQUESTING || ip->client->state == S_REBOOTING || cur_time > ip->client->active->rebind) |