]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: acl: correctly consider boolean fetches when doing casts
authorWilly Tarreau <w@1wt.eu>
Wed, 12 Jun 2013 19:50:19 +0000 (21:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Jun 2013 20:26:05 +0000 (22:26 +0200)
commit24b2c766f45e7c9f445f61268243f85209b1dccf
treedba2c2bef312b79d73c9b0bac9aba8a6e8ac6d61
parent595ec54d383e2d77e31a92acd6ebcdd65ce1fdad
BUG/MINOR: acl: correctly consider boolean fetches when doing casts

Commit 5adeda1 (acl: add option -m to change the pattern matching method)
was not completely correct with regards to boolean fetches. It only used
the sample type to determine if the test had to be performed as a boolean
instead of relying on the match function. Due to this, a test such as the
following would not correctly match as the pattern would be ignored :

    acl srv_down srv_is_up(s2) -m int 0

No backport is needed as this was merged first in 1.5-dev18.
src/acl.c