mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-26 16:49:47 -04:00
BUG/MEDIUM: ssl: free the ckch instance linked to a server
This patch unlinks and frees the ckch instance linked to a server during the free of this server. This could have locked certificates in a "Used" state when removing servers dynamically from the CLI. And could provoke a segfault once we try to dynamically update the certificate after that. This must be backported as far as 2.4.
This commit is contained in:
parent
231610ad9c
commit
e69563fd8e
1 changed files with 2 additions and 0 deletions
|
|
@ -5247,6 +5247,8 @@ void ssl_sock_free_srv_ctx(struct server *srv)
|
|||
#ifdef HAVE_SSL_CTX_SET_CIPHERSUITES
|
||||
ha_free(&srv->ssl_ctx.ciphersuites);
|
||||
#endif
|
||||
/* If there is a certificate we must unlink the ckch instance */
|
||||
ckch_inst_free(srv->ssl_ctx.inst);
|
||||
}
|
||||
|
||||
/* Walks down the two trees in bind_conf and frees all the certs. The pointer may
|
||||
|
|
|
|||
Loading…
Reference in a new issue