]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: peers: check that p->srv actually exists before using p->srv->use_ssl
authorWilly Tarreau <w@1wt.eu>
Fri, 8 Feb 2019 09:22:31 +0000 (10:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Feb 2019 09:22:31 +0000 (10:22 +0100)
commit1417f0b5dc7291c2feefd8f8d265fdc318d277a0
tree5f2ed730dca015e6f357a47fb952aa490a206a47
parent18cca781f5384f060704ad80018d80bdd4e01e76
BUG/MEDIUM: peers: check that p->srv actually exists before using p->srv->use_ssl

Commit 1055e687a ("MINOR: peers: Make outgoing connection to SSL/TLS
peers work.") introduced an "srv" field in the peers, which points to
the equivalent server to hold SSL settings. This one is not set when
the peer is local so we must always test it before testing p->srv->use_ssl
otherwise haproxy dies during reloads.

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