Revert "Tls client: fix bad comparison for non-blocking shutdown call."

This reverts commit 04db2c7cd9.
pull/328/head
David Garske 2022-07-20 16:25:22 -07:00
parent d4c6965149
commit 62495aaa97
1 changed files with 2 additions and 1 deletions

View File

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