From: Ted Lemon Date: Wed, 20 Sep 2000 09:03:59 +0000 (+0000) Subject: Don't spawn with zero-length strings. X-Git-Tag: V3-BETA-2-PATCH-5^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b767664ec36aaebc7a0a0ee09a780bfc646a03cb;p=thirdparty%2Fdhcp.git Don't spawn with zero-length strings. --- diff --git a/server/class.c b/server/class.c index b5c0fa49b..432bc3984 100644 --- a/server/class.c +++ b/server/class.c @@ -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,