[prev in list] [next in list] [prev in thread] [next in thread]
List: openssh-bugs
Subject: [Bug 2213] New: X11 forwarding to DISPLAY containing a hexadecimal-colon IPv6 address fails
From: bugzilla-daemon () mindrot ! org
Date: 2014-03-20 9:31:46
Message-ID: bug-2213-705 () https ! bugzilla ! mindrot ! org/
[Download RAW message or body]
https://bugzilla.mindrot.org/show_bug.cgi?id=2213
Bug ID: 2213
Summary: X11 forwarding to DISPLAY containing a
hexadecimal-colon IPv6 address fails
Product: Portable OpenSSH
Version: -current
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: ssh
Assignee: unassigned-bugs@mindrot.org
Reporter: hektor@itc.rwth-aachen.de
If an IPv6 host has no AAAA DNS entry the DISPLAY variable might
contain a hexadecimal/colon address.
The function x11_connect_display() in channels.c determins the
"hostname"
in the DISPLAY variable by searching for the *first* colon occurence
(line 3550 in that file):
cp = strchr(buf, ':');
This seems to be incompatible with the representation of IPv6
addresses.
The resulting error produces an error message which can be attributed
to the debug2 statement later in that function (line 3582):
connect 2001 port 6006: Invalid argument
Error: Can't open display: localhost:10.0
A workaround is documented here:
http://www.technologische-hilfe.de/antworten/lightdm-xdm-sitzung-und-ipv6-support-241428392.html
My guess is that the problem can be solved by using strrchr in that
statement:
cp = strrchr(buf, ':');
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic