Merge pull request #3525 from SparkiDev/tls13_session

TLS 1.3: always add session when sending finished message
pull/3535/head
toddouska 2020-12-02 13:47:38 -08:00 committed by GitHub
commit b4c7b5e6ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

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