applying fix for:
0000260: udhcpc doesn't validate client hardware address
This commit is contained in:
parent
379ac89c30
commit
01f67987e0
@ -443,6 +443,11 @@ int main(int argc, char *argv[])
|
|||||||
if (memcmp(client_config.arp,packet.chaddr,6))
|
if (memcmp(client_config.arp,packet.chaddr,6))
|
||||||
continue;
|
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) {
|
if ((message = get_option(&packet, DHCP_MESSAGE_TYPE)) == NULL) {
|
||||||
DEBUG(LOG_ERR, "couldnt get option from packet -- ignoring");
|
DEBUG(LOG_ERR, "couldnt get option from packet -- ignoring");
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user