Commit f15feb2a authored by Matt Johnston's avatar Matt Johnston
Browse files

- Handle failure to connect to forwarding socket

--HG--
extra : convert_revision : 0cc1ae25ba35931d6ddd9e989e875ef975616be6
parent 2f1ed9a3
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment