BUG/MINOR: acls: Set the right refflag when patterns are loaded from a map
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Jun 2017 12:41:33 +0000 (14:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 14 Jun 2017 14:39:07 +0000 (16:39 +0200)
commit54ceb041d6372a70afdbdd76f4f2bac46a088d18
treeacef5d8519e1eedc24066ef10e84f3c069aeefc0
parenta4d0361969a47e85d41738bdea4578773577fff7
BUG/MINOR: acls: Set the right refflag when patterns are loaded from a map

For an ACL, we can load patterns from a map using the flag -M. For example:

    acl test hdr(host) -M -f hosts.map

The file is parsed as a map et the ACL will be executed as expected. But the
reference flag is wrong. It is set to PAT_REF_ACL. So the map will never be
listed by a "show map" on the stat socket. Setting the reference flag to
PAT_REF_ACL|PAT_REF_MAP fixes the bug.
src/acl.c