mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-04 08:15:14 +00:00
Don't spawn with zero-length strings.
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ int check_collection (packet, lease, collection)
|
|||||||
(&data, packet, lease,
|
(&data, packet, lease,
|
||||||
packet -> options, (struct option_state *)0,
|
packet -> options, (struct option_state *)0,
|
||||||
&lease -> scope, class -> submatch));
|
&lease -> scope, class -> submatch));
|
||||||
if (status) {
|
if (status && data.len) {
|
||||||
nc = (struct class *)0;
|
nc = (struct class *)0;
|
||||||
if (class_hash_lookup (&nc, class -> hash,
|
if (class_hash_lookup (&nc, class -> hash,
|
||||||
(const char *)data.data,
|
(const char *)data.data,
|
||||||
|
Reference in New Issue
Block a user