]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: payload: the patterns of the acl "req.ssl_ver" are no parsed with the...
authorThierry FOURNIER <tfournier@exceliance.fr>
Fri, 24 Jan 2014 11:41:51 +0000 (12:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 25 Jan 2014 01:50:58 +0000 (02:50 +0100)
The fetch "req.ssl_ver" is not declared as explicit acl. If it is used
as implicit ACL, the acl engine detect SMP_T_UINT output type and choose
to use the default interger parser: pat_parse_int(). This fetch needs the
parser pat_parse_dotted_ver().

This patch declare explicit ACL named "req.ssl_ver" that use the good
parser function pat_parse_dotted_ver().

src/payload.c

index bb4c010080c340bdb7add987f4de5a339107654c..cd772916bbc75704facaf04c7064b6a1f7c67139 100644 (file)
@@ -687,6 +687,7 @@ static struct acl_kw_list acl_kws = {ILH, {
        { "req_rdp_cookie_cnt", "req.rdp_cookie_cnt", pat_parse_int,        pat_match_int     },
        { "req_ssl_sni",        "req.ssl_sni",        pat_parse_str,        pat_match_str     },
        { "req_ssl_ver",        "req.ssl_ver",        pat_parse_dotted_ver, pat_match_int     },
+       { "req.ssl_ver",        "req.ssl_ver",        pat_parse_dotted_ver, pat_match_int     },
        { /* END */ },
 }};