From b87aa4327c1bc2425a9236ef1a1698260f04cf86 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 04 Aug 2019 00:38:32 -0400 Subject: s_client: Don't save wolfSSL_get_error() value --- diff --git a/src/s_client.c b/src/s_client.c index 2aa71c2..8471e32 100644 --- a/src/s_client.c +++ b/src/s_client.c @@ -263,8 +263,7 @@ s_client(int argc, char **argv) wolfSSL_set_fd(ssl, sfd); if ((err = wolfSSL_connect(ssl)) != WOLFSSL_SUCCESS) { - err = wolfSSL_get_error(ssl, err); - wolfSSL_ERR_error_string(err, buf); + wolfSSL_ERR_error_string(wolfSSL_get_error(ssl, err), buf); fprintf(stderr, "Handshake error: %s\n", buf); goto error; } -- cgit v0.9.1