summaryrefslogtreecommitdiffstats
path: root/channels.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2008-04-03 08:43:57 +1100
committerDamien Miller <djm@mindrot.org>2008-04-03 08:43:57 +1100
commit5f5cd746f357a87637a6a91605a44e1ed9a6dab1 (patch)
tree8349920edaf26fb421887ff47533809c7262b2f5 /channels.c
parent0abb2324284b1894c0b231b370a5868ae0d24c34 (diff)
- markus@cvs.openbsd.org 2008/04/02 15:36:51
[channels.c] avoid possible hijacking of x11-forwarded connections (back out 1.183) CVE-2008-1483; ok djm@
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/channels.c b/channels.c
index c766cc27..b6bd901f 100644
--- a/channels.c
+++ b/channels.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: channels.c,v 1.272 2008/01/19 23:02:40 djm Exp $ */
+/* $OpenBSD: channels.c,v 1.273 2008/04/02 21:36:51 markus Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2906,9 +2906,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]);
}