]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Don't spawn with zero-length strings.
authorTed Lemon <source@isc.org>
Wed, 20 Sep 2000 09:03:59 +0000 (09:03 +0000)
committerTed Lemon <source@isc.org>
Wed, 20 Sep 2000 09:03:59 +0000 (09:03 +0000)
server/class.c

index b5c0fa49bbf34f130031715bf072e4bab807fb71..432bc398430e947e0b93083670087dddd92a9163 100644 (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,