summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/bootp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bootp.c b/net/bootp.c
index 8aeddb08ea..8da2e9b8b4 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:
/*
OpenPOWER on IntegriCloud