From 6afa449e2e444f19dd6d320d7f6500e8f12bd87f Mon Sep 17 00:00:00 2001 From: Leonid Krivoshein Date: Sun, 22 Apr 2018 19:20:26 +0300 Subject: [PATCH] dhcp.c: fix potentially destructive typo. Thanks to Arseny Maslennikov . See also: https://bugzilla.altlinux.org/show_bug.cgi?id=34322 --- dhcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhcp.c b/dhcp.c index 83885ff..b8a687a 100644 --- a/dhcp.c +++ b/dhcp.c @@ -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 */