提交 daaaa3cb 编写于 作者: B Bernd Edlinger

Fix bogus use of BIO_sock_should_retry.

Reviewed-by: NAndy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3948)
上级 c8b93876
...@@ -215,7 +215,7 @@ int do_server(int *accept_sock, const char *host, const char *port, ...@@ -215,7 +215,7 @@ int do_server(int *accept_sock, const char *host, const char *port,
if (type == SOCK_STREAM) { if (type == SOCK_STREAM) {
do { do {
sock = BIO_accept_ex(asock, NULL, 0); sock = BIO_accept_ex(asock, NULL, 0);
} while (sock < 0 && BIO_sock_should_retry(ret)); } while (sock < 0 && BIO_sock_should_retry(sock));
if (sock < 0) { if (sock < 0) {
ERR_print_errors(bio_err); ERR_print_errors(bio_err);
BIO_closesocket(asock); BIO_closesocket(asock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册