aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2008-04-17 00:00:54 +0000
committerColin Percival <cperciva@FreeBSD.org>2008-04-17 00:00:54 +0000
commitf5f3db0e5a6d6972fdcfb14d64508ca2feaa2ead (patch)
tree728db4a377568c32e84769fee265b2b9e9607da9 /crypto
parenta3287dcbb9906efb2b0db7880b99b22e377c82cb (diff)
Fix logic error in sshd(8) concerning the handling of failedreleng/6.1
attempts to bind ports for X11 forwarding. Security: FreeBSD-SA-08:05.openssh Approved by: so (cperciva)
Notes
Notes: svn path=/releng/6.1/; revision=178263
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssh/channels.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/crypto/openssh/channels.c b/crypto/openssh/channels.c
index 8c7b2b369000..8986d0a461c3 100644
--- a/crypto/openssh/channels.c
+++ b/crypto/openssh/channels.c
@@ -2708,9 +2708,6 @@ x11_create_display_inet(int x11_display_offset, int x11_use_localhost,
debug2("bind port %d: %.100s", port, strerror(errno));
close(sock);
- if (ai->ai_next)
- continue;
-
for (n = 0; n < num_socks; n++) {
close(socks[n]);
}