Improve standard logging.

This commit is contained in:
Andreas Schneider
2009-11-12 12:52:05 +01:00
parent b4095189d7
commit 3e90a11599
2 changed files with 5 additions and 1 deletions

View File

@@ -838,7 +838,8 @@ int ssh_userauth_autopubkey(ssh_session session, const char *passphrase) {
#ifndef _WIN32
if (agent_is_running(session)) {
ssh_log(session, SSH_LOG_RARE,
"Trying to authenticate with SSH agent keys");
"Trying to authenticate with SSH agent keys as user: %s",
session->username);
for (publickey = agent_get_first_ident(session, &privkeyfile);
publickey != NULL;

View File

@@ -214,6 +214,9 @@ static int ssh_connect_ai_timeout(ssh_session session, const char *host,
sock_set_nonblocking(s);
ssh_log(session, SSH_LOG_RARE, "Trying to connect to host: %s:%d with "
"timeout %ld.%ld", host, port, timeout, usec);
/* The return value is checked later */
connect(s, ai->ai_addr, ai->ai_addrlen);
freeaddrinfo(ai);