From: Roy Marples Date: Tue, 20 Mar 2012 09:18:20 +0000 (+0000) Subject: If no ClientID or hardware address, don't report a blank hardware address. X-Git-Tag: v5.5.5~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e084fac909d60e7b965d0d5c23aa26cee305232;p=thirdparty%2Fdhcpcd.git If no ClientID or hardware address, don't report a blank hardware address. --- diff --git a/dhcpcd.c b/dhcpcd.c index 8e6a66d8..ad591dcf 100644 --- 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)); }