BUG/MINOR: payload: the patterns of the acl "req.ssl_ver" are no parsed with the good function.

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().
This commit is contained in:
Thierry FOURNIER 2014-01-24 12:41:51 +01:00 committed by Willy Tarreau
parent 4bd07de087
commit e7054c7177

View 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 */ },
}};