From: phk Date: Wed, 15 Oct 2008 21:28:15 +0000 (+0000) Subject: Fix an off-by one error in ACL compilation. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63bbb8b2be30003aaffd52b11e50399750d47a7f;p=varnish 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 --- 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;