diff options
author | Ted Lemon <source@isc.org> | 2001-05-04 01:05:17 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2001-05-04 01:05:17 +0000 |
commit | 33d1e366dbd66ea5d0753d0d29020a226236370d (patch) | |
tree | 27d6811930d67c82cae8d29b700d763d22fdb3d3 /common/print.c | |
parent | fe7fba89014db8a481ad9cf7ae0e0a892a6ba347 (diff) | |
download | isc-dhcp-33d1e366dbd66ea5d0753d0d29020a226236370d.tar.gz |
Make print_hw_addr bulletproof.
Diffstat (limited to 'common/print.c')
-rw-r--r-- | common/print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/print.c b/common/print.c index 74b96d34..20f6a24e 100644 --- a/common/print.c +++ b/common/print.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: print.c,v 1.52 2001/04/09 00:36:45 mellon Exp $ Copyright (c) 1995-2001 The Internet Software Consortium. All rights reserved.\n"; +"$Id: print.c,v 1.53 2001/05/04 01:05:17 mellon Exp $ Copyright (c) 1995-2001 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -133,7 +133,7 @@ char *print_hw_addr (htype, hlen, data) char *s; int i; - if (hlen == 0) + if (hlen <= 0) habuf [0] = 0; else { s = habuf; |