TLS 1.3: always add session when sending finished message

This commit is contained in:
Sean Parkinson
2020-11-27 09:46:02 +10:00
parent 84a9e16805
commit 22a8be412b

View File

@@ -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