BUG/MEDIUM: pattern: "pat_parse_dotted_ver()" set bad expect_type.

This is a regression introducted by the patches "MINOR: pattern: Each
pattern sets the expected input type" and "MEDIUM: acl: Last patch
change the output type". The expected value is SMP_T_CSTR in place of
SMP_T_UINT.

This bug impact all the acl using the parser "pat_parse_dotted_ver()".
The two acl are "req_ssl_ver()" and "req.ssl_ver()".

This is a recent bug, no backport is needed.
This commit is contained in:
Thierry FOURNIER 2014-01-27 16:04:43 +01:00 committed by Willy Tarreau
parent 25002d206b
commit 59ad9d6593

View File

@ -495,7 +495,7 @@ int pat_parse_dotted_ver(const char **text, struct pattern *pattern, enum pat_us
return 0;
}
pattern->expect_type = SMP_T_CSTR;
pattern->expect_type = SMP_T_UINT;
if (!last)
pattern->val.range.min = i;