- itojun@cvs.openbsd.org 2002/07/12 13:29:09
[sshconnect.c] print connect failure during debugging mode.
This commit is contained in:
parent
370e0bac16
commit
728aa7e18c
|
@ -1,3 +1,9 @@
|
||||||
|
20020715
|
||||||
|
- (bal) OpenBSD CVS Sync
|
||||||
|
- itojun@cvs.openbsd.org 2002/07/12 13:29:09
|
||||||
|
[sshconnect.c]
|
||||||
|
print connect failure during debugging mode.
|
||||||
|
|
||||||
20020714
|
20020714
|
||||||
- (tim) [Makefile.in] replace "id sshd" with "sshd -t"
|
- (tim) [Makefile.in] replace "id sshd" with "sshd -t"
|
||||||
- (bal/tim) [acconfig.h configure.ac monitor_mm.c servconf.c
|
- (bal/tim) [acconfig.h configure.ac monitor_mm.c servconf.c
|
||||||
|
@ -1361,4 +1367,4 @@
|
||||||
- (stevesk) entropy.c: typo in debug message
|
- (stevesk) entropy.c: typo in debug message
|
||||||
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
|
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.2366 2002/07/14 22:50:51 tim Exp $
|
$Id: ChangeLog,v 1.2367 2002/07/15 17:48:11 mouring Exp $
|
||||||
|
|
17
sshconnect.c
17
sshconnect.c
|
@ -13,7 +13,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: sshconnect.c,v 1.130 2002/07/10 10:28:15 itojun Exp $");
|
RCSID("$OpenBSD: sshconnect.c,v 1.131 2002/07/12 13:29:09 itojun Exp $");
|
||||||
|
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
|
|
||||||
|
@ -46,19 +46,6 @@ extern uid_t original_effective_uid;
|
||||||
#define INET6_ADDRSTRLEN 46
|
#define INET6_ADDRSTRLEN 46
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0
|
|
||||||
static const char *
|
|
||||||
sockaddr_ntop(struct sockaddr *sa, socklen_t salen)
|
|
||||||
{
|
|
||||||
static char addrbuf[NI_MAXHOST];
|
|
||||||
|
|
||||||
if (getnameinfo(sa, salen, addrbuf, sizeof(addrbuf), NULL, 0,
|
|
||||||
NI_NUMERICHOST) != 0)
|
|
||||||
fatal("sockaddr_ntop: getnameinfo NI_NUMERICHOST failed");
|
|
||||||
return addrbuf;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Connect to the given ssh server using a proxy command.
|
* Connect to the given ssh server using a proxy command.
|
||||||
*/
|
*/
|
||||||
|
@ -309,6 +296,8 @@ ssh_connect(const char *host, struct sockaddr_storage * hostaddr,
|
||||||
} else {
|
} else {
|
||||||
if (errno == ECONNREFUSED)
|
if (errno == ECONNREFUSED)
|
||||||
full_failure = 0;
|
full_failure = 0;
|
||||||
|
debug("connect to address %s port %s: %s",
|
||||||
|
ntop, strport, strerror(errno));
|
||||||
/*
|
/*
|
||||||
* Close the failed socket; there appear to
|
* Close the failed socket; there appear to
|
||||||
* be some problems when reusing a socket for
|
* be some problems when reusing a socket for
|
||||||
|
|
Loading…
Reference in New Issue