mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[dhcp] Ignore DHCPACKs containing incorrect IP addresses
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -528,6 +528,8 @@ static void dhcp_request_rx ( struct dhcp_session *dhcp,
|
|||||||
return;
|
return;
|
||||||
if ( server_id.s_addr != dhcp->server.s_addr )
|
if ( server_id.s_addr != dhcp->server.s_addr )
|
||||||
return;
|
return;
|
||||||
|
if ( ip.s_addr != dhcp->offer.s_addr )
|
||||||
|
return;
|
||||||
|
|
||||||
/* Record assigned address */
|
/* Record assigned address */
|
||||||
dhcp->local.sin_addr = ip;
|
dhcp->local.sin_addr = ip;
|
||||||
|
|||||||
Reference in New Issue
Block a user