2
0
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:
Michael Brown 2010-09-24 04:45:29 +01:00
parent c517d0ea7f
commit ba6aca3424

View File

@ -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;