]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix a leftover thinko in the statement copy support code.
authorTed Lemon <source@isc.org>
Sat, 17 Jul 1999 15:52:20 +0000 (15:52 +0000)
committerTed Lemon <source@isc.org>
Sat, 17 Jul 1999 15:52:20 +0000 (15:52 +0000)
common/execute.c

index 72e5245df91d55ed03ac8b26d9a0b0319bcfee88..7c1d55c3ec1ad676a2b4d30cd0d3ed766ff9e984 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: execute.c,v 1.11 1999/07/16 21:33:58 mellon Exp $ Copyright (c) 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: execute.c,v 1.12 1999/07/17 15:52:20 mellon Exp $ Copyright (c) 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -44,14 +44,16 @@ int execute_statements (packet, lease, in_options, out_options, statements)
        for (r = statements; r; r = r -> next) {
                switch (r -> op) {
                      case statements_statement:
+#if defined (DEBUG_EXPRESSIONS)
                        log_info ("exec: statements");
-                       if (!execute_statements (packet, lease,
-                                                in_options, out_options,
-                                                r -> data.statements.car))
-                               return 0;
-                       if (!execute_statements (packet, lease,
-                                                in_options, out_options,
-                                                r -> data.statements.cdr))
+#endif
+                       status = execute_statements (packet, lease,
+                                                    in_options, out_options,
+                                                    r -> data.statements);
+#if defined (DEBUG_EXPRESSIONS)
+                       log_info ("exec: statements returns %d", status);
+#endif
+                       if (!status)
                                return 0;
                        break;