Fix logic error in sshd(8) concerning the handling of failed
attempts to bind ports for X11 forwarding. Security: FreeBSD-SA-08:05.openssh
This commit is contained in:
parent
56bde70813
commit
8d2de1f321
@ -2895,9 +2895,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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user