]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: peers: Incomplete peers sections should be validated.
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 3 Apr 2020 07:43:47 +0000 (09:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 Apr 2020 08:47:39 +0000 (10:47 +0200)
commit8ba10fea69aff458ee0be9c32a432dcc319f8f0b
tree2c169e1e7c0cdfe370d899ef3a5c766c2ca81d48
parent02c88036a61e09d0676a2b6b4086af677b023b94
BUG/MINOR: peers: Incomplete peers sections should be validated.

Before supporting "server" line in "peers" section, such sections without
any local peer were removed from the configuration to get it validated.

This patch fixes the issue where a "server" line without address and port which
is a remote peer without address and port makes the configuration parsing fail.
When encoutering such cases we now ignore such lines remove them from the
configuration.

Thank you to Jérôme Magnin for having reported this bug.

Must be backported to 2.1 and 2.0.
include/proto/server.h
src/cfgparse-listen.c
src/cfgparse.c
src/server.c