提交 694c9180 编写于 作者: B Benjamin Kaduk 提交者: Richard Levitte

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: NMatt Caswell <matt@openssl.org>
Reviewed-by: NRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2279)
上级 0f82d2f5
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册