summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/s_client.c3
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);