mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
Fix for TLS v1.3 in non-blocking loosing return code from SendBuffered
. Example: SendBuffered returns WANT_WRITE (-327) and sets ssl->error, then below it was doing ssl->error = ret
where ret = 0.
This commit is contained in:
@ -11954,7 +11954,7 @@ int wolfSSL_connect_TLSv13(WOLFSSL* ssl)
|
|||||||
&& ssl->error != WC_PENDING_E
|
&& ssl->error != WC_PENDING_E
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
if ((ssl->error = SendBuffered(ssl)) == 0) {
|
if ((ret = SendBuffered(ssl)) == 0) {
|
||||||
if (ssl->fragOffset == 0 && !ssl->options.buildingMsg) {
|
if (ssl->fragOffset == 0 && !ssl->options.buildingMsg) {
|
||||||
if (advanceState) {
|
if (advanceState) {
|
||||||
#ifdef WOLFSSL_DTLS13
|
#ifdef WOLFSSL_DTLS13
|
||||||
|
Reference in New Issue
Block a user