]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: pattern: "pat_parse_dotted_ver()" set bad expect_type.
authorThierry FOURNIER <tfournier@exceliance.fr>
Mon, 27 Jan 2014 15:04:43 +0000 (16:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 27 Jan 2014 15:23:01 +0000 (16:23 +0100)
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.

src/pattern.c

index ce12a0e3e9834b45c5e1a2393ee46433f04f9458..306b514b228adae1cc32f6f85620ba1e6d7e9d0d 100644 (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;