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:
parent
547debb59b
commit
6afa449e2e
2
dhcp.c
2
dhcp.c
@ -546,7 +546,7 @@ enum return_type perform_dhcp(struct interface_info * intf)
|
|||||||
messageType = DHCP_TYPE_DISCOVER;
|
messageType = DHCP_TYPE_DISCOVER;
|
||||||
add_vendor_code(&breq, DHCP_OPTION_TYPE, 1, &messageType);
|
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_family = AF_INET;
|
||||||
client_addr.sin_port = htons(BOOTP_CLIENT_PORT); /* bootp client */
|
client_addr.sin_port = htons(BOOTP_CLIENT_PORT); /* bootp client */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user