2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-04 08:15:14 +00:00

Make print_hw_addr bulletproof.

This commit is contained in:
Ted Lemon
2001-05-04 01:05:17 +00:00
parent fe7fba8901
commit 33d1e366db

View File

@@ -43,7 +43,7 @@
#ifndef lint #ifndef lint
static char copyright[] = 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 */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@@ -133,7 +133,7 @@ char *print_hw_addr (htype, hlen, data)
char *s; char *s;
int i; int i;
if (hlen == 0) if (hlen <= 0)
habuf [0] = 0; habuf [0] = 0;
else { else {
s = habuf; s = habuf;