mirror of https://github.com/ipxe/ipxe.git
[dhcp] Ignore DHCPACKs containing incorrect IP addresses
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/1/head
parent
c517d0ea7f
commit
ba6aca3424
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue