]> err.no Git - varnish/commitdiff
Fix an off-by one error in ACL compilation.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 15 Oct 2008 21:28:15 +0000 (21:28 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 15 Oct 2008 21:28:15 +0000 (21:28 +0000)
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

index 6d0c748e08d88ebf10399091694a63d841fd2850..a3e4392594508b943c80baa5827e012e6b5ecb9e 100644 (file)
@@ -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;