Commit 15877919 authored by Peter Buckingham's avatar Peter Buckingham Committed by David S. Miller

[IPV4]: Fix DHCPACK checking in ipconfig.c

Signed-off-by: default avatarPeter Buckingham <peter@pantasys.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f5b7ee69
......@@ -966,9 +966,7 @@ static int __init ic_bootp_recv(struct sk_buff *skb, struct net_device *dev, str
break;
case DHCPACK:
for (i = 0; (dev->dev_addr[i] == b->hw_addr[i])
&& (i < dev->addr_len); i++);
if (i < dev->addr_len)
if (memcmp(dev->dev_addr, b->hw_addr, dev->addr_len) != 0)
goto drop_unlock;
/* Yeah! */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment