summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2012-03-20 09:18:20 +0000
committerRoy Marples <roy@marples.name>2012-03-20 09:18:20 +0000
commit5e084fac909d60e7b965d0d5c23aa26cee305232 (patch)
tree9992889e8787147fec7b49f688a6ae0d348a40d5
parentfd73ceb145b4d0ec80a88cd470c52145e3eb2b55 (diff)
downloaddhcpcd-5e084fac909d60e7b965d0d5c23aa26cee305232.tar.xz
If no ClientID or hardware address, don't report a blank hardware address.
-rw-r--r--dhcpcd.c2
1 files changed, 1 insertions, 1 deletions
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));
}