summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-04-06 19:05:05 -0700
committerDamjan Marion <dmarion@me.com>2022-04-07 14:44:28 +0000
commite0c0280d9bc53921897902f8adb845cf13e4641f (patch)
treeef3b791d33480383267a0edcb4f7dd1f3203f1e6 /src
parent788676b211cf5a3e54bac1f564f069941562437e (diff)
tls: fix session pool realloc on accept
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I68ada775810bb4a4f280962a979605b211562a52
Diffstat (limited to 'src')
-rw-r--r--src/plugins/tlsopenssl/tls_openssl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c
index 5bfac0d0b0f..f0c0b0d9c19 100644
--- a/src/plugins/tlsopenssl/tls_openssl.c
+++ b/src/plugins/tlsopenssl/tls_openssl.c
@@ -534,6 +534,9 @@ openssl_ctx_read_tls (tls_ctx_t *ctx, session_t *tls_session)
{
if (openssl_ctx_handshake_rx (ctx, tls_session) < 0)
return 0;
+
+ /* Application might force a session pool realloc on accept */
+ tls_session = session_get_from_handle (ctx->tls_session_handle);
}
app_session = session_get_from_handle (ctx->app_session_handle);