mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 05:17:28 +00:00
- Handle failure to connect to forwarding socket
--HG-- extra : convert_revision : 0cc1ae25ba35931d6ddd9e989e875ef975616be6
This commit is contained in:
parent
2f1ed9a34b
commit
f15feb2ac6
@ -79,6 +79,10 @@ static int new_agent_chan(struct Channel * channel) {
|
||||
return SSH_OPEN_ADMINISTRATIVELY_PROHIBITED;
|
||||
|
||||
fd = connect_agent();
|
||||
if (cli_opts.agent_fd < 0) {
|
||||
dropbear_log(LOG_INFO, "Failed to connect to agent");
|
||||
return SSH_OPEN_CONNECT_FAILED;
|
||||
}
|
||||
|
||||
setnonblocking(fd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user