mirror of
https://github.com/clearml/dropbear
synced 2025-06-16 19:28:49 +00:00
- Don't print warning if SSH_AUTH_SOCK is unset
--HG-- extra : convert_revision : 0d7a9127af37d6e74efc5ec031a7001ce63d334d
This commit is contained in:
parent
f15feb2ac6
commit
c7e3eb9b3f
@ -66,6 +66,10 @@ static int connect_agent() {
|
|||||||
|
|
||||||
fd = connect_unix(agent_sock);
|
fd = connect_unix(agent_sock);
|
||||||
|
|
||||||
|
if (fd < 0) {
|
||||||
|
dropbear_log(LOG_INFO, "Failed to connect to agent");
|
||||||
|
}
|
||||||
|
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,7 +84,6 @@ static int new_agent_chan(struct Channel * channel) {
|
|||||||
|
|
||||||
fd = connect_agent();
|
fd = connect_agent();
|
||||||
if (cli_opts.agent_fd < 0) {
|
if (cli_opts.agent_fd < 0) {
|
||||||
dropbear_log(LOG_INFO, "Failed to connect to agent");
|
|
||||||
return SSH_OPEN_CONNECT_FAILED;
|
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 */
|
/* agent_fd will be closed after successful auth */
|
||||||
cli_opts.agent_fd = connect_agent();
|
cli_opts.agent_fd = connect_agent();
|
||||||
if (cli_opts.agent_fd < 0) {
|
if (cli_opts.agent_fd < 0) {
|
||||||
dropbear_log(LOG_INFO, "Failed to connect to agent");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user