Skip to content

Commit

Permalink
Revert "Tls client: fix bad comparison for non-blocking shutdown call."
Browse files Browse the repository at this point in the history
This reverts commit 04db2c7.
  • Loading branch information
dgarske committed Jul 20, 2022
1 parent d4c6965 commit 62495aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tls/client-tls-nonblocking.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ int main(int argc, char** argv)
err = wolfSSL_get_error(ssl, 0);
if (err == WOLFSSL_ERROR_WANT_READ)
tcp_select(sockfd, SELECT_WAIT_SEC, 1);
} while (err == WOLFSSL_ERROR_WANT_READ || err == WOLFSSL_ERROR_WANT_WRITE);
} while (ret == WOLFSSL_ERROR_WANT_READ ||
ret == WOLFSSL_ERROR_WANT_WRITE);
printf("Shutdown complete\n");

ret = 0;
Expand Down

0 comments on commit 62495aa

Please sign in to comment.