diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2008-04-02 21:36:52 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2008-04-02 21:36:52 +0000 |
commit | dd270d419b8bc1609691c7e2ceb6cd8a47bbc85d (patch) | |
tree | e6d38f874bca1e8c407646f0c6dd62131159986c /usr.bin/ssh | |
parent | 9e441a939fc93477bb0747045c74f5557b30936f (diff) |
avoid possible hijacking of x11-forwarded connections (back out 1.183)
CVE-2008-1483; ok djm@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/channels.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c index 774817adcb1..e34b5163119 100644 --- a/usr.bin/ssh/channels.c +++ b/usr.bin/ssh/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 @@ -2870,9 +2870,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]); } |