dhcp.c: fix potentially destructive typo.

Thanks to Arseny Maslennikov <arseny@altlinux.org>.
See also: https://bugzilla.altlinux.org/show_bug.cgi?id=34322
This commit is contained in:
Leonid Krivoshein 2018-04-22 19:20:26 +03:00
parent 547debb59b
commit 6afa449e2e

2
dhcp.c
View File

@ -546,7 +546,7 @@ enum return_type perform_dhcp(struct interface_info * intf)
messageType = DHCP_TYPE_DISCOVER;
add_vendor_code(&breq, DHCP_OPTION_TYPE, 1, &messageType);
memset(&client_addr.sin_addr, 0, sizeof(&client_addr.sin_addr));
memset(&client_addr.sin_addr, 0, sizeof(client_addr.sin_addr));
client_addr.sin_family = AF_INET;
client_addr.sin_port = htons(BOOTP_CLIENT_PORT); /* bootp client */