mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-05 21:00:33 +09:00
connect: Correctly fail in ssh_connect_host_nonblocking().
This commit is contained in:
@@ -387,6 +387,8 @@ socket_t ssh_connect_host_nonblocking(ssh_session session, const char *host,
|
||||
ssh_set_error(session, SSH_FATAL,
|
||||
"Failed to set socket non-blocking for %s:%d", host, port);
|
||||
ssh_connect_socket_close(s);
|
||||
s = -1;
|
||||
continue;
|
||||
}
|
||||
|
||||
connect(s, itr->ai_addr, itr->ai_addrlen);
|
||||
|
||||
Reference in New Issue
Block a user