Merge pull request #6692 from JacobBarthelmeh/tls13

fix setting ssl error with TLS 1.3 connect socket errors
This commit is contained in:
David Garske 2023-12-05 09:15:29 -08:00 committed by GitHub
commit b92aa59bd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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