diff options
author | Paul Fox | 2005-07-20 19:13:21 +0000 |
---|---|---|
committer | Paul Fox | 2005-07-20 19:13:21 +0000 |
commit | 01f67987e0aa4a4890a02d1a7445d878d3436d26 (patch) | |
tree | 2eb26a8ed5f14f660570365961da509efe6d0ee4 | |
parent | 379ac89c30b96ec335bc0c16b8ecdd14a1b807ac (diff) | |
download | busybox-01f67987e0aa4a4890a02d1a7445d878d3436d26.zip busybox-01f67987e0aa4a4890a02d1a7445d878d3436d26.tar.gz |
applying fix for:
0000260: udhcpc doesn't validate client hardware address
-rw-r--r-- | networking/udhcp/dhcpc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index d99711c..7d50a72 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c @@ -443,6 +443,11 @@ int main(int argc, char *argv[]) if (memcmp(client_config.arp,packet.chaddr,6)) continue; + if (memcmp(packet.chaddr, client_config.arp, 6)) { + DEBUG(LOG_INFO, "packet does not have our chaddr -- ignoring"); + continue; + } + if ((message = get_option(&packet, DHCP_MESSAGE_TYPE)) == NULL) { DEBUG(LOG_ERR, "couldnt get option from packet -- ignoring"); continue; |