From: Ted Lemon Date: Tue, 19 Oct 1999 15:31:40 +0000 (+0000) Subject: Compute arguments to packet operator correctly. X-Git-Tag: BCTEL_SPECIAL_19991124~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b4f1c069a91107816455c1c2d3abe0fdeb8ebc6;p=thirdparty%2Fdhcp.git Compute arguments to packet operator correctly. --- diff --git a/common/tree.c b/common/tree.c index 2473b8d7a..b91ef2432 100644 --- a/common/tree.c +++ b/common/tree.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: tree.c,v 1.61 1999/10/14 18:00:46 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. All rights reserved.\n"; +"$Id: tree.c,v 1.62 1999/10/19 15:31:40 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -865,10 +865,10 @@ int evaluate_data_expression (result, packet, lease, return 0; } - s0 = evaluate_numeric_expression (&len, packet, lease, + s0 = evaluate_numeric_expression (&offset, packet, lease, in_options, cfg_options, - expr -> data.packet.len); - s1 = evaluate_numeric_expression (&offset, + expr -> data.packet.offset); + s1 = evaluate_numeric_expression (&len, packet, lease, in_options, cfg_options, expr -> data.packet.len);