diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-08-04 00:38:32 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-08-04 00:38:32 (EDT) |
commit | b87aa4327c1bc2425a9236ef1a1698260f04cf86 (patch) | |
tree | befc63f4d4da547face1237cf91c0f92b3deaf75 | |
parent | 6d9b6675b0766ac533313a8973ac0833f4378f72 (diff) |
s_client: Don't save wolfSSL_get_error() value
-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; } |