← Commit list

01f67987e

Paul Fox
Paul Fox
2005-07-20
FAILED Duration: 45s

Subject

applying fix for: 0000260: udhcpc doesn't validate client hardware address

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/udhcp/dhcpc.c+5 -0
@@ -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;