diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/s_client.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |