mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-19 00:51:37 +01:00
BUG/MAJOR: check: fix memory leak in "tcp-check connect" over SSL
tcp-check must not reinitialize the SSL stack upon each check! It's done once after the config parsing and leaks memory and eats performance when done upon every check. This bug was introduced in 1.5-dev22, no backport is needed.
This commit is contained in:
parent
f522f3d291
commit
852745d548
@ -2091,7 +2091,6 @@ static void tcpcheck_main(struct connection *conn)
|
||||
#ifdef USE_OPENSSL
|
||||
if (check->current_step->conn_opts & TCPCHK_OPT_SSL) {
|
||||
xprt = &ssl_sock;
|
||||
ssl_sock_prepare_srv_ctx(s, s->proxy);
|
||||
}
|
||||
else {
|
||||
xprt = &raw_sock;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user