Skip to content

Commit 62495aa

Browse files
committed
Revert "Tls client: fix bad comparison for non-blocking shutdown call."
This reverts commit 04db2c7.
1 parent d4c6965 commit 62495aa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tls/client-tls-nonblocking.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ int main(int argc, char** argv)
246246
err = wolfSSL_get_error(ssl, 0);
247247
if (err == WOLFSSL_ERROR_WANT_READ)
248248
tcp_select(sockfd, SELECT_WAIT_SEC, 1);
249-
} while (err == WOLFSSL_ERROR_WANT_READ || err == WOLFSSL_ERROR_WANT_WRITE);
249+
} while (ret == WOLFSSL_ERROR_WANT_READ ||
250+
ret == WOLFSSL_ERROR_WANT_WRITE);
250251
printf("Shutdown complete\n");
251252

252253
ret = 0;

0 commit comments

Comments
 (0)