summaryrefslogtreecommitdiff
path: root/openssh-bind.patch
blob: 029e8ecc9b116356ec544db7ce32ac9fb886b0f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- openssh-8.5p1/channels.c~	2021-03-02 11:31:47.000000000 +0100
+++ openssh-8.5p1/channels.c	2021-03-03 21:43:11.034054979 +0100
@@ -4579,6 +4579,9 @@ x11_create_display_inet(struct ssh *ssh,
 				debug2_f("bind port %d: %.100s", port,
 				    strerror(errno));
 				close(sock);
+				// vserver hack
+				if (errno == EADDRNOTAVAIL)
+				    continue;
 				for (n = 0; n < num_socks; n++)
 					close(socks[n]);
 				num_socks = 0;