From 694c9180d7f082b896692048052413fc5dc4e467 Mon Sep 17 00:00:00 2001 From: Benjamin Kaduk Date: Mon, 13 Feb 2017 14:14:06 -0600 Subject: [PATCH] Use correct variable in test diagnostic create_ssl_connection() prints out the results if SSL_accept() and/or SSL_connect() fail, but was reusing the client return value when printing about SSL_accept() failures. Reviewed-by: Matt Caswell Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/2279) --- test/ssltestlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ssltestlib.c b/test/ssltestlib.c index 1981cb5696..8a4dd49d5c 100644 --- a/test/ssltestlib.c +++ b/test/ssltestlib.c @@ -669,7 +669,7 @@ int create_ssl_connection(SSL *serverssl, SSL *clientssl) } if (!servererr && rets <= 0 && err != SSL_ERROR_WANT_READ) { - printf("SSL_accept() failed %d, %d\n", retc, err); + printf("SSL_accept() failed %d, %d\n", rets, err); servererr = 1; } if (clienterr && servererr) -- 2.25.1