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.
diff --git a/src/pattern.c b/src/pattern.c
index ce12a0e..306b514 100644
--- a/src/pattern.c
+++ b/src/pattern.c
@@ -495,7 +495,7 @@
return 0;
}
- pattern->expect_type = SMP_T_CSTR;
+ pattern->expect_type = SMP_T_UINT;
if (!last)
pattern->val.range.min = i;