connect: Correctly fail in ssh_connect_host_nonblocking().
Этот коммит содержится в:
родитель
b31efd9ff1
Коммит
aaae3c4ec1
@ -387,6 +387,8 @@ socket_t ssh_connect_host_nonblocking(ssh_session session, const char *host,
|
|||||||
ssh_set_error(session, SSH_FATAL,
|
ssh_set_error(session, SSH_FATAL,
|
||||||
"Failed to set socket non-blocking for %s:%d", host, port);
|
"Failed to set socket non-blocking for %s:%d", host, port);
|
||||||
ssh_connect_socket_close(s);
|
ssh_connect_socket_close(s);
|
||||||
|
s = -1;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(s, itr->ai_addr, itr->ai_addrlen);
|
connect(s, itr->ai_addr, itr->ai_addrlen);
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user