summaryrefslogtreecommitdiffhomepage
path: root/cli-agentfwd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2009-08-13 14:57:27 +0000
committerMatt Johnston <matt@ucc.asn.au>2009-08-13 14:57:27 +0000
commitc7e3eb9b3fdbfa60bd21cedc7873b89cf8cad0a6 (patch)
tree92dbc769260d41c1243648e666726dc27d84c696 /cli-agentfwd.c
parentf15feb2ac6123eebe27b859efd83f7df94dc8146 (diff)
- Don't print warning if SSH_AUTH_SOCK is unset
--HG-- extra : convert_revision : 0d7a9127af37d6e74efc5ec031a7001ce63d334d
Diffstat (limited to 'cli-agentfwd.c')
-rw-r--r--cli-agentfwd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli-agentfwd.c b/cli-agentfwd.c
index eed4a6a..a212c3f 100644
--- a/cli-agentfwd.c
+++ b/cli-agentfwd.c
@@ -66,6 +66,10 @@ static int connect_agent() {
fd = connect_unix(agent_sock);
+ if (fd < 0) {
+ dropbear_log(LOG_INFO, "Failed to connect to agent");
+ }
+
return fd;
}
@@ -80,7 +84,6 @@ static int new_agent_chan(struct Channel * channel) {
fd = connect_agent();
if (cli_opts.agent_fd < 0) {
- dropbear_log(LOG_INFO, "Failed to connect to agent");
return SSH_OPEN_CONNECT_FAILED;
}
@@ -247,7 +250,6 @@ void cli_load_agent_keys(m_list *ret_list) {
/* agent_fd will be closed after successful auth */
cli_opts.agent_fd = connect_agent();
if (cli_opts.agent_fd < 0) {
- dropbear_log(LOG_INFO, "Failed to connect to agent");
return;
}