From: Benjamin Kaduk Date: Mon, 13 Feb 2017 20:14:06 +0000 (-0600) Subject: Use correct variable in test diagnostic X-Git-Tag: OpenSSL_1_1_1-pre1~2287 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=694c9180d7f082b896692048052413fc5dc4e467;p=oweals%2Fopenssl.git 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) --- 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)