diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-08-04 00:32:21 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-08-04 00:32:21 (EDT) |
commit | 6d9b6675b0766ac533313a8973ac0833f4378f72 (patch) | |
tree | 4fd9cd92627fbbe3ea5712d456f7f4dced5d164c | |
parent | 812a2c21eed8882ba5958e2ddf103e42ecf887af (diff) |
s_client: Merge assignment and conditional
No change to binary, just bumming one line of source code.
-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 2387474..2aa71c2 100644 --- a/src/s_client.c +++ b/src/s_client.c @@ -257,8 +257,7 @@ s_client(int argc, char **argv) } #endif - sfd = connect_socket(host, port); - if (sfd == -1) { + if ((sfd = connect_socket(host, port)) == -1) { goto error; } wolfSSL_set_fd(ssl, sfd); |