]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: server: alloc dynamic srv ssl ctx if proxy uses ssl chk rule
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 20 Sep 2021 13:31:42 +0000 (15:31 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 21 Sep 2021 11:56:03 +0000 (13:56 +0200)
commitb621552ca3f7b5196bea68a3dc0f3ed6e6a859b0
treeaaf721f4c7d159e523a7efef8d877176b10b3de4
parent0f456d502963f3555552d4b3d5f97ed504353d85
BUG/MINOR: server: alloc dynamic srv ssl ctx if proxy uses ssl chk rule

The ssl context is not initialized for a dynamic server, even if there
is a tcpcheck rule which uses ssl on the related backed. This will cause
the check initialization to failed with the message :
  "Out of memory when initializing an SSL connection"

This can be reproduced by having the following config in the backend :
  option tcp-check
  tcp-check connect ssl
and create a dynamic server with check activated and a ca-file.

Fix this by calling the prepare_srv xprt callback when the proxy options
PR_O_TCPCKH_SSL is set.

Check support for dynamic servers has been merged in the current branch.
No backport needed.
src/server.c