summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp/common/print.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2001-08-26 17:38:17 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2001-08-26 17:38:17 +0000
commitaadfb5ff45607b6779d8f7a609e784c5ed0d3c5d (patch)
tree2527ada9d5a936aba7005dc0c96177839b1ea417 /usr.sbin/dhcp/common/print.c
parent91d54d082f23b64a374aaefa1201e49a5cc77097 (diff)
Fix two typos that had the effect that ethernet addresses where always logged
as <null> and that hostname lookups didn't work, forcing people to use IP adresses instead of names. ok krw@
Diffstat (limited to 'usr.sbin/dhcp/common/print.c')
-rw-r--r--usr.sbin/dhcp/common/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/dhcp/common/print.c b/usr.sbin/dhcp/common/print.c
index cbf108b872a..12b2ffff2cb 100644
--- a/usr.sbin/dhcp/common/print.c
+++ b/usr.sbin/dhcp/common/print.c
@@ -59,7 +59,7 @@ char *print_hw_addr (htype, hlen, data)
for (i = 0; i < hlen; i++) {
int j;
j = snprintf (s, slen, "%02x", data [i]);
- if (j >= 0)
+ if (j <= 0)
goto bad;
s += strlen (s);