Bugzilla – Attachment 2335 Details for
Bug 2143
X11 forwarding for ipv4 is broken when ipv6 is disabled on the loopback interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Suggested patch to fix X11 forwarding with IPv6 disabled
openssh-fix-X11-forwarding-with-IPv6-disabled.patch (text/plain), 593 bytes, created by
Andrey Borzenkov
on 2013-09-16 03:45:52 AEST
(
hide
)
Description:
Suggested patch to fix X11 forwarding with IPv6 disabled
Filename:
MIME Type:
Creator:
Andrey Borzenkov
Created:
2013-09-16 03:45:52 AEST
Size:
593 bytes
patch
obsolete
>Index: openssh-6.1p1/channels.c >=================================================================== >--- openssh-6.1p1.orig/channels.c >+++ openssh-6.1p1/channels.c >@@ -3473,6 +3473,12 @@ x11_create_display_inet(int x11_display_ > debug2("bind port %d: %.100s", port, strerror(errno)); > close(sock); > >+ /* Linux returns both IPv4 adn IPv6 local >+ addresses here even if IPv6 is disabled. >+ Ignore error in this case. >+ */ >+ if (ai->ai_family == AF_INET6 && errno == EADDRNOTAVAIL) >+ continue; > for (n = 0; n < num_socks; n++) { > close(socks[n]); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2143
: 2335 |
3044