]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: server: Tighten up parsing of weight string
authorSimon Horman <horms@verge.net.au>
Tue, 12 Feb 2013 01:45:53 +0000 (10:45 +0900)
committerWilly Tarreau <w@1wt.eu>
Wed, 13 Feb 2013 09:59:50 +0000 (10:59 +0100)
commitb796afa60dc44e96beeec508e6180f3ed1708b72
tree5075678f0bdbe76a46014fb82e8350e557564309
parent58b5d292b3129dfc2cb1fe880c4b0294bf13749d
MEDIUM: server: Tighten up parsing of weight string

Detect:
* Empty weight string, including no digits before '%' in relative
  weight string
* Trailing garbage, including between the last integer and '%'
  in relative weights

The motivation for this is to allow the weight string to be safely
logged if successfully parsed by this function

Signed-off-by: Simon Horman <horms@verge.net.au>
src/server.c