fix setting ssh error with TLS 1.3 connect socket errors

This commit is contained in:
Jacob Barthelmeh
2023-08-09 09:58:51 -06:00
committed by JacobBarthelmeh
parent 195c14ccaf
commit ef536f541f

View File

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