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