]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: acl: properly detect pattern type SMP_T_ADDR
authorWilly Tarreau <w@1wt.eu>
Fri, 19 Apr 2019 09:45:20 +0000 (11:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Apr 2019 09:45:20 +0000 (11:45 +0200)
commit78c5eec9497e1e60565492bc69581aea439e54cc
tree04c8b395f6f7760721cf13b53bb26b0b32061cfd
parentaa5801bcaade82ce58b9a70f320b7d0389e444b0
BUG/MINOR: acl: properly detect pattern type SMP_T_ADDR

Since 1.6-dev4 with commit b2f8f087f ("MINOR: map: The map can return
IPv4 and IPv6"), maps can return both IPv4 and IPv6 addresses, which
is represented as SMP_T_ADDR at the output of the map converter. But
the ACL parser only checks for either SMP_T_IPV4 or SMP_T_IPV6 and
requires to see an explicit matching method specified. Given that it
uses the same pattern parser for both address families, it implicitly
is also compatible with SMP_T_ADDR, which ought to have been added
there.

This fix should be backported as far as 1.6.
src/acl.c