Merge pull request #7001 from dgarske/testnb

Fix for TLS v1.3 in non-blocking loosing return code from `SendBuffered`
This commit is contained in:
JacobBarthelmeh
2023-11-24 12:34:57 -07:00
committed by GitHub

View File

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