From 22a8be412b2e06decab9251926004d45193ee130 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Fri, 27 Nov 2020 09:46:02 +1000 Subject: [PATCH] TLS 1.3: always add session when sending finished message --- src/tls13.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tls13.c b/src/tls13.c index 73a1cc9d4..1b071bbbb 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -6069,8 +6069,7 @@ static int SendTls13Finished(WOLFSSL* ssl) return BUILD_MSG_ERROR; #ifndef NO_SESSION_CACHE - if (!ssl->options.resuming && (ssl->options.side == WOLFSSL_SERVER_END || - (ssl->options.side == WOLFSSL_SERVER_END && ssl->arrays != NULL))) { + if (!ssl->options.resuming) { AddSession(ssl); /* just try */ } #endif