diff options
-rw-r--r-- | src/s_client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s_client.c b/src/s_client.c index ea9972d..3559728 100644 --- a/src/s_client.c +++ b/src/s_client.c @@ -57,7 +57,7 @@ parse_host_port(char *hostport, char **host, char **port) return true; } -static _Bool +static int connect_socket(const char *host, const char *port) { struct addrinfo hints = {0}; @@ -260,6 +260,7 @@ s_client(int argc, char **argv) ret = EXIT_FAILURE; goto ssl_free; } + wolfSSL_set_fd(ssl, sfd); if (poll_fds(sfd, ssl) == false) { ret = EXIT_FAILURE; |