Tls client: fix bad comparison for non-blocking shutdown call.
parent
6b24ea805f
commit
04db2c7cd9
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue