From 42e071f11d2d140c5ae7230d38981e3ff3de0be2 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Mon, 6 Apr 2020 16:53:10 +0000 Subject: Minor code improvements. --- regress/lib/libssl/client/clienttest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'regress/lib/libssl/client') diff --git a/regress/lib/libssl/client/clienttest.c b/regress/lib/libssl/client/clienttest.c index 3487348c9e3..e81b83c45e2 100644 --- a/regress/lib/libssl/client/clienttest.c +++ b/regress/lib/libssl/client/clienttest.c @@ -289,7 +289,7 @@ hexdump(const unsigned char *buf, size_t len) size_t i; for (i = 1; i <= len; i++) - fprintf(stderr, " 0x%02hhx,%s", buf[i - 1], i % 8 ? "" : "\n"); + fprintf(stderr, " 0x%02hhx,%s", buf[i - 1], i % 8 && i != len ? "" : "\n"); fprintf(stderr, "\n"); } @@ -342,7 +342,7 @@ make_client_hello(int protocol, char **out, size_t *outlen) case TLS1_2_VERSION: client_hello = client_hello_tls12; client_hello_len = sizeof(client_hello_tls12); - if (ssl_aes_is_accelerated() == 1) + if (ssl_aes_is_accelerated()) cipher_list = cipher_list_tls12_aes; else cipher_list = cipher_list_tls12_chacha; @@ -450,7 +450,7 @@ client_hello_test(int testno, struct client_hello_test *cht) ret = 0; -failure: + failure: SSL_CTX_free(ssl_ctx); SSL_free(ssl); -- cgit v1.2.3