From: Ted Lemon Date: Wed, 27 Sep 2000 19:19:32 +0000 (+0000) Subject: Use suffix.len, not substring.len, when evaluating suffix operator. X-Git-Tag: V3-BETA-2-PATCH-6~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5fc6758efdbe4f2b259621426df5c8fde6de1c7;p=thirdparty%2Fdhcp.git Use suffix.len, not substring.len, when evaluating suffix operator. --- diff --git a/common/tree.c b/common/tree.c index dc5c485c5..eebff7958 100644 --- a/common/tree.c +++ b/common/tree.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: tree.c,v 1.88 2000/08/28 21:22:36 neild Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: tree.c,v 1.89 2000/09/27 19:19:32 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -1274,7 +1274,7 @@ int evaluate_data_expression (result, packet, lease, s1 = evaluate_numeric_expression (&len, packet, lease, in_options, cfg_options, scope, - expr -> data.substring.len); + expr -> data.suffix.len); if (s0 && s1) { data_string_copy (result, &data, MDL);