]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: parse: check the validity of size string in a more strict way
authorGodbach <nylzhaowei@gmail.com>
Wed, 28 Jan 2015 09:36:16 +0000 (17:36 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 28 Jan 2015 10:23:11 +0000 (11:23 +0100)
commit58048a2dc98bfa7f59d86fe2ca878d95ca2310e3
tree026bb20c82a2c23b0717e2630dca357d2dc43be6
parent9770787e7010bbd3b05d2c8a323139f4b6640c45
BUG/MINOR: parse: check the validity of size string in a more strict way

If a stick table is defined as below:
stick-table type ip size 50ka expire 300s

HAProxy will stop parsing size after passing through "50k" and return the value
directly. But such format string of size should not be valid. The patch checks
the next character to report error if any.

Signed-off-by: Godbach <nylzhaowei@gmail.com>
src/standard.c