From: Willy Tarreau Date: Tue, 1 Dec 2026 10:40:50 +0000 (+0100) Subject: Revert "OPTIM: acl: only reset ctx and flags, not the whole sample" X-Git-Url: https://git.kaiwu.me/http/%22..//%22data:,/%22?a=commitdiff_plain;h=ee7745e15332f31bf208cabe77fef86a86bf517c;p=haproxy.git Revert "OPTIM: acl: only reset ctx and flags, not the whole sample" This reverts commit 903405ce3c3c09352503423cb67117a7e95a518d. According to Claude (?) this is the one that breaks the CI because some bogus sample fetches rely on pre-existing data before the call. This possibly indicates a new class of bugs to take care of, so that's not in scope for this version. --- diff --git a/src/acl.c b/src/acl.c index 2e069d631..806aab4cf 100644 --- a/src/acl.c +++ b/src/acl.c @@ -1083,8 +1083,7 @@ enum acl_test_res acl_exec_cond(struct acl_cond *cond, struct proxy *px, struct acl_res = ACL_TEST_FAIL; list_for_each_entry(expr, &acl->expr, list) { /* we need to reset context and flags */ - memset(&smp.ctx, 0, sizeof(smp.ctx)); - smp.flags = smp.opt = 0; + memset(&smp, 0, sizeof(smp)); fetch_next: if (!sample_process(px, sess, strm, opt, expr->smp, &smp)) { /* maybe we could not fetch because of missing data */