summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBenjamin Kaduk <bkaduk@akamai.com>2017-02-13 14:14:06 -0600
committerRichard Levitte <levitte@openssl.org>2017-02-23 19:40:26 +0100
commit694c9180d7f082b896692048052413fc5dc4e467 (patch)
tree08de32b494c13e0c773ece8326be56db0402e75a /test
parent0f82d2f5841fd1c0883f1570632f74c33ce2034c (diff)
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 <matt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2279)
Diffstat (limited to 'test')
-rw-r--r--test/ssltestlib.c2
1 files changed, 1 insertions, 1 deletions
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)