mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-21 14:17:27 -04:00
Disassociate the SSL object from the cached SSL_SESSION
When the SSL object was destroyed, it would invalidate all SSL_SESSION objects including the cached, but not yet used, TLS session objects. Properly disassociate the SSL object from the SSL_SESSION before we store it in the TLS session cache, so we can later destroy it without invalidating the cached TLS sessions. Co-authored-by: Ondřej Surý <ondrej@isc.org> Co-authored-by: Artem Boldariev <artem@isc.org> Co-authored-by: Aram Sargsyan <aram@isc.org>
This commit is contained in:
parent
ee00bddf94
commit
c11b736e44
1 changed files with 2 additions and 0 deletions
|
|
@ -1497,6 +1497,8 @@ isc_tlsctx_client_session_cache_keep(isc_tlsctx_client_session_cache_t *cache,
|
|||
return;
|
||||
}
|
||||
|
||||
SSL_set_session(tls, NULL);
|
||||
|
||||
isc_mutex_lock(&cache->lock);
|
||||
|
||||
name_len = strlen(remote_peer_name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue