]> git.kaiwu.me - haproxy.git/commit
CLEANUP: acl: remove duplicate test in parse_acl_expr() and unused variable
authorWilly Tarreau <w@1wt.eu>
Thu, 30 Apr 2026 13:53:21 +0000 (15:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 30 Apr 2026 15:39:26 +0000 (17:39 +0200)
commite6b3dd7b348e4b10776f113f25a403fdc45f6861
treeb288ae8632f7feef0a1056b02b1a189af3a1a420
parentdc93168f224a3e3db11da4f708c2e3b515d5b5a6
CLEANUP: acl: remove duplicate test in parse_acl_expr() and unused variable

aclkw->match_type was compared twice to PAT_MATCH_DOM in parse_acl_expr().
After auditing the involved types, it's only a copy-paste mistake, as no
other matching method is missing, so let's drop it to avoid the confusion.
Also drop variable ckw which is assigned NULL and passed to free(), and is
clearly a leftover from a previous version.

No backport needed.
src/acl.c