Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/ssh don't quit while creating X11 listening socket.



details:   https://anonhg.NetBSD.org/src/rev/940956a0f89f
branches:  trunk
changeset: 536500:940956a0f89f
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Sep 17 06:26:18 2002 +0000

description:
don't quit while creating X11 listening socket.
address (first) problem described in
http://mail-index.netbsd.org/current-users/2002/09/16/0005.html

diffstat:

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

diffs (20 lines):

diff -r d6c14e37e2d1 -r 940956a0f89f crypto/dist/ssh/channels.c
--- a/crypto/dist/ssh/channels.c        Tue Sep 17 05:56:37 2002 +0000
+++ b/crypto/dist/ssh/channels.c        Tue Sep 17 06:26:18 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: channels.c,v 1.23 2002/06/26 14:08:29 itojun Exp $     */
+/*     $NetBSD: channels.c,v 1.24 2002/09/17 06:26:18 itojun Exp $     */
 /*
  * Author: Tatu Ylonen <ylo%cs.hut.fi@localhost>
  * Copyright (c) 1995 Tatu Ylonen <ylo%cs.hut.fi@localhost>, Espoo, Finland
@@ -2366,6 +2366,10 @@
                        if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
                                debug("bind port %d: %.100s", port, strerror(errno));
                                close(sock);
+
+                               if (ai->ai_next)
+                                       continue;
+
                                for (n = 0; n < num_socks; n++) {
                                        close(socks[n]);
                                }



Home | Main Index | Thread Index | Old Index