]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[dhcp] Ignore DHCPACKs containing incorrect IP addresses
authorMichael Brown <mcb30@ipxe.org>
Fri, 24 Sep 2010 03:45:29 +0000 (04:45 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 8 Oct 2010 00:45:31 +0000 (01:45 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/udp/dhcp.c

index 0483e2f609a849cfc3828cbcf5cd9e97556fbb1a..6435bf2eecbc7d1b1e58da5d179c6b178cad1d52 100644 (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;