diff options
-rw-r--r-- | net/bootp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bootp.c b/net/bootp.c index 8aeddb08ea8..8da2e9b8b43 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -995,6 +995,9 @@ static void dhcp_handler(uchar *pkt, unsigned dest, struct in_addr sip, debug("DHCPHandler: got DHCP packet: (src=%d, dst=%d, len=%d) state: " "%d\n", src, dest, len, dhcp_state); + if (net_read_ip(&bp->bp_yiaddr).s_addr == 0) + return; + switch (dhcp_state) { case SELECTING: /* |