Fix for case with ssl->error not being set.

This commit is contained in:
David Garske
2020-08-12 10:00:10 -07:00
parent 03b7ac559a
commit 5f059306fd

View File

@@ -17642,7 +17642,8 @@ int SendData(WOLFSSL* ssl, const void* data, int sz)
if (ssl->earlyData != no_early_data) { if (ssl->earlyData != no_early_data) {
if (ssl->options.handShakeState == HANDSHAKE_DONE) { if (ssl->options.handShakeState == HANDSHAKE_DONE) {
WOLFSSL_MSG("handshake complete, trying to send early data"); WOLFSSL_MSG("handshake complete, trying to send early data");
return BUILD_MSG_ERROR; ssl->error = BUILD_MSG_ERROR;
return WOLFSSL_FATAL_ERROR;
} }
#ifdef WOLFSSL_EARLY_DATA_GROUP #ifdef WOLFSSL_EARLY_DATA_GROUP
groupMsgs = 1; groupMsgs = 1;