From daaaa3cb7e506466b38de995b3e5149f4045bdff Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Mon, 17 Jul 2017 11:51:19 +0200 Subject: [PATCH] Fix bogus use of BIO_sock_should_retry. Reviewed-by: Andy Polyakov (Merged from https://github.com/openssl/openssl/pull/3948) --- apps/s_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- GitLab