]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
If no ClientID or hardware address, don't report a blank hardware address.
authorRoy Marples <roy@marples.name>
Tue, 20 Mar 2012 09:18:20 +0000 (09:18 +0000)
committerRoy Marples <roy@marples.name>
Tue, 20 Mar 2012 09:18:20 +0000 (09:18 +0000)
dhcpcd.c

index 8e6a66d8905429e6506d7cf9d00cd444216a4e36..ad591dcf37bd9c3f4ce68f02f11531abb6f92b32 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -828,7 +828,7 @@ configure_interface1(struct interface *iface)
        if (ifo->options & DHCPCD_CLIENTID)
                syslog(LOG_DEBUG, "%s: using ClientID %s", iface->name,
                    hwaddr_ntoa(iface->clientid + 1, *iface->clientid));
-       else
+       else if (iface->hwlen)
                syslog(LOG_DEBUG, "%s: using hwaddr %s", iface->name,
                    hwaddr_ntoa(iface->hwaddr, iface->hwlen));
 }