From: Bernd Edlinger Date: Mon, 17 Jul 2017 09:51:19 +0000 (+0200) Subject: Fix bogus use of BIO_sock_should_retry. X-Git-Tag: OpenSSL_1_1_1-pre1~1025 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=daaaa3cb7e506466b38de995b3e5149f4045bdff;p=oweals%2Fopenssl.git Fix bogus use of BIO_sock_should_retry. Reviewed-by: Andy Polyakov (Merged from https://github.com/openssl/openssl/pull/3948) --- diff --git a/apps/s_socket.c b/apps/s_socket.c index b2bf244f23..804ab5b05a 100644 --- a/apps/s_socket.c +++ b/apps/s_socket.c @@ -215,7 +215,7 @@ int do_server(int *accept_sock, const char *host, const char *port, if (type == SOCK_STREAM) { do { 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) { ERR_print_errors(bio_err); BIO_closesocket(asock);