]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: peers: Missing peer initializations.
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 12 Feb 2019 18:12:32 +0000 (19:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 Feb 2019 18:49:22 +0000 (19:49 +0100)
commit76d2cef0c2f11e54c4eb2b4fbf3c219649e69c6d
treee1f93416248f2724582db9b53b01170094d8ea35
parentcdce54c2b7490e57e8f5d4a40875724d4e790eec
BUG/MEDIUM: peers: Missing peer initializations.

Initialize ->srv peer field for all the peers, the local peer included.
Indeed, a haproxy process needs to connect to the local peer of a remote
process. Furthermore, when a "peer" or "server" line is parsed by parse_server()
the address must be copied to ->addr field of the peer object only if this address
has been also parsed by parse_server(). This is not the case if this address belongs
to the local peer and is provided on a "server" line.

After having parsed the "peer" or "server" lines of a peer
sections, the ->srv part of all the peer must be initialized for SSL, if
enabled. Same thing for the binding part.

Revert 1417f0b commit which is no more required.

No backport is needed, this is purely 2.0.
include/proto/peers.h
src/cfgparse.c