From ef536f541fecfc47135cb76e28216c4418eaa652 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 9 Aug 2023 09:58:51 -0600 Subject: [PATCH] fix setting ssh error with TLS 1.3 connect socket errors --- src/tls13.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tls13.c b/src/tls13.c index ddbc2324d..93ec08ff6 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -13163,7 +13163,8 @@ int wolfSSL_accept_TLSv13(WOLFSSL* ssl) && !ssl->dtls13SendingAckOrRtx; #endif /* WOLFSSL_DTLS13 */ - if ((ssl->error = SendBuffered(ssl)) == 0) { + ret = SendBuffered(ssl); + if (ret == 0) { if (ssl->fragOffset == 0 && !ssl->options.buildingMsg) { if (advanceState) { ssl->options.acceptState++;