]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Re-apply part of 1.24 that was accidentally voided by 1.25
authorTed Lemon <source@isc.org>
Sat, 30 Sep 2000 01:31:09 +0000 (01:31 +0000)
committerTed Lemon <source@isc.org>
Sat, 30 Sep 2000 01:31:09 +0000 (01:31 +0000)
server/class.c

index e681c3409f807e5d710cbe623d927f191b108a30..ad08b2cc38a617b92d180bc31fcdf6f18593691d 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: class.c,v 1.25 2000/09/29 18:20:26 mellon Exp $ Copyright (c) 1998-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: class.c,v 1.26 2000/09/30 01:31:09 mellon Exp $ Copyright (c) 1998-2000 The Internet Software Consortium.  All rights reserved.\n";
 
 #endif /* not lint */
 
@@ -117,7 +117,8 @@ int check_collection (packet, lease, collection)
                        status = (evaluate_boolean_expression_result
                                  (&ignorep, packet, lease,
                                   packet -> options, (struct option_state *)0,
-                                  &lease -> scope, class -> expr));
+                                  lease ? &lease -> scope : &global_scope,
+                                  class -> expr));
                        if (status) {
                                if (!class -> submatch) {
                                        matched = 1;