From 63bbb8b2be30003aaffd52b11e50399750d47a7f Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 15 Oct 2008 21:28:15 +0000 Subject: [PATCH] Fix an off-by one error in ACL compilation. Should be merged into 2.0 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3308 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvcl/vcc_acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/lib/libvcl/vcc_acl.c b/varnish-cache/lib/libvcl/vcc_acl.c index 6d0c748e..a3e43925 100644 --- a/varnish-cache/lib/libvcl/vcc_acl.c +++ b/varnish-cache/lib/libvcl/vcc_acl.c @@ -397,7 +397,7 @@ vcc_acl_bot(const struct tokenlist *tl, const char *acln, int silent, const char Fh(tl, 0, "\t%*s%sif ((a[%d] & 0x%x) == %d) {\n", -i, "", oc, - i, (0xff00 >> m) & 0xff, + i - 1, (0xff00 >> m) & 0xff, ae->data[i] & ((0xff00 >> m) & 0xff)); at[i] = 256; depth = i; -- 2.39.5