2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 22:05:23 +00:00

Don't spawn with zero-length strings.

This commit is contained in:
Ted Lemon
2000-09-20 09:03:59 +00:00
parent 1bd620d8de
commit b767664ec3

View File

@@ -43,7 +43,7 @@
#ifndef lint
static char copyright[] =
"$Id: class.c,v 1.22 2000/09/06 20:26:13 mellon Exp $ Copyright (c) 1998-2000 The Internet Software Consortium. All rights reserved.\n";
"$Id: class.c,v 1.23 2000/09/20 09:03:59 mellon Exp $ Copyright (c) 1998-2000 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
@@ -113,7 +113,7 @@ int check_collection (packet, lease, collection)
(&data, packet, lease,
packet -> options, (struct option_state *)0,
&lease -> scope, class -> submatch));
if (status) {
if (status && data.len) {
nc = (struct class *)0;
if (class_hash_lookup (&nc, class -> hash,
(const char *)data.data,