diff --git a/src/tls13.c b/src/tls13.c index ac24dda0e9..738e9c1d07 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -11954,7 +11954,7 @@ int wolfSSL_connect_TLSv13(WOLFSSL* ssl) && ssl->error != WC_PENDING_E #endif ) { - if ((ssl->error = SendBuffered(ssl)) == 0) { + if ((ret = SendBuffered(ssl)) == 0) { if (ssl->fragOffset == 0 && !ssl->options.buildingMsg) { if (advanceState) { #ifdef WOLFSSL_DTLS13