Ripped from Fedora for CVE-2008-1483 http://bugs.gentoo.org/214985 --- openssh-3.9p1/channels.c +++ openssh-3.9p1/channels.c @@ -2653,9 +2653,6 @@ 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]); }