Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/ssh silently connect(2) to next address. sync w...



details:   https://anonhg.NetBSD.org/src/rev/20ce1897749e
branches:  trunk
changeset: 533775:20ce1897749e
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Jul 09 12:04:10 2002 +0000

description:
silently connect(2) to next address.  sync w/openbsd

diffstat:

 crypto/dist/ssh/sshconnect.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 65f430b127a6 -r 20ce1897749e crypto/dist/ssh/sshconnect.c
--- a/crypto/dist/ssh/sshconnect.c      Tue Jul 09 12:03:54 2002 +0000
+++ b/crypto/dist/ssh/sshconnect.c      Tue Jul 09 12:04:10 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sshconnect.c,v 1.20 2002/07/01 06:17:13 itojun Exp $   */
+/*     $NetBSD: sshconnect.c,v 1.21 2002/07/09 12:04:10 itojun Exp $   */
 /*
  * Author: Tatu Ylonen <ylo%cs.hut.fi@localhost>
  * Copyright (c) 1995 Tatu Ylonen <ylo%cs.hut.fi@localhost>, Espoo, Finland
@@ -43,6 +43,7 @@
 extern uid_t original_real_uid;
 extern uid_t original_effective_uid;
 
+#if 0
 static const char *
 sockaddr_ntop(struct sockaddr *sa, socklen_t salen)
 {
@@ -53,6 +54,7 @@
                fatal("sockaddr_ntop: getnameinfo NI_NUMERICHOST failed");
        return addrbuf;
 }
+#endif
 
 /*
  * Connect to the given ssh server using a proxy command.
@@ -304,9 +306,11 @@
                        } else {
                                if (errno == ECONNREFUSED)
                                        full_failure = 0;
+#if 0
                                log("ssh: connect to address %s port %s: %s",
                                    sockaddr_ntop(ai->ai_addr, ai->ai_addrlen),
                                    strport, strerror(errno));
+#endif
                                /*
                                 * Close the failed socket; there appear to
                                 * be some problems when reusing a socket for



Home | Main Index | Thread Index | Old Index