Merge pull request #327 from JamesMenetrey/bad_nonblocking_shutdown

Tls client: fix bad comparison for non-blocking shutdown call.
pull/328/head
kareem-wolfssl 2022-07-20 16:21:49 -07:00 committed by GitHub
commit d4c6965149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -246,8 +246,7 @@ 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 (ret == WOLFSSL_ERROR_WANT_READ ||
ret == WOLFSSL_ERROR_WANT_WRITE);
} while (err == WOLFSSL_ERROR_WANT_READ || err == WOLFSSL_ERROR_WANT_WRITE);
printf("Shutdown complete\n");
ret = 0;