]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tcpcheck: conf parsing error when no port configured on server and first...
authorBaptiste Assmann <bedis9@gmail.com>
Fri, 4 Dec 2015 05:49:31 +0000 (06:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 4 Dec 2015 06:48:44 +0000 (07:48 +0100)
commitbaf9794b4d1e8590f88426e6e905cc5a72bfc1c0
tree530445455729ade2daf282df351a773a1ddb775f
parent3dd73bea64dcbaa04858cb256c2230dbf3da58e8
BUG/MINOR: tcpcheck: conf parsing error when no port configured on server and first rule(s) is (are) COMMENT

A small configuration parsing error exists when no port is setup on the
server IP:port statement and the server's parameter 'port' is not set
and if the first tcp-check rule is a comment, like in the example below:

  backend b
   option tcp-check
   tcp-check comment blah
   tcp-check connect 8444
   server s 127.0.0.1 check

In such case, an ALERT is improperly returned, despite this
configuration is valid and works.

The new code move the pointer to the first tcp-check rule which isn't a
comment before checking the presence of the port.

backport status: 1.6 and above
src/server.c