Merge pull request #3564 from SparkiDev/tls13_add_sess

TLS 1.3: Don't add a session without a ticket
This commit is contained in:
toddouska
2020-12-14 16:09:52 -08:00
committed by GitHub

View File

@ -6057,12 +6057,6 @@ static int SendTls13Finished(WOLFSSL* ssl)
if (sendSz < 0)
return BUILD_MSG_ERROR;
#ifndef NO_SESSION_CACHE
if (!ssl->options.resuming) {
AddSession(ssl); /* just try */
}
#endif
#ifdef WOLFSSL_CALLBACKS
if (ssl->hsInfoOn) AddPacketName(ssl, "Finished");
if (ssl->toInfoOn) {