Mailing List Archive

r3308 - trunk/varnish-cache/lib/libvcl
Author: phk
Date: 2008-10-15 23:28:15 +0200 (Wed, 15 Oct 2008)
New Revision: 3308

Modified:
trunk/varnish-cache/lib/libvcl/vcc_acl.c
Log:
Fix an off-by one error in ACL compilation.

Should be merged into 2.0


Modified: trunk/varnish-cache/lib/libvcl/vcc_acl.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_acl.c 2008-10-15 18:54:22 UTC (rev 3307)
+++ trunk/varnish-cache/lib/libvcl/vcc_acl.c 2008-10-15 21:28:15 UTC (rev 3308)
@@ -397,7 +397,7 @@
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;