Re: X forwarding fails due to to wrong exception handling in sshd
On Wed, Oct 25, 2017 at 10:31:32AM +0200, Frank Burkhardt wrote:
> The problem seems to be located in channels.c in
> x11_create_display_inet(). The loop looking for free ports only tests,
> if bind() succeeds. After the loop, listen() is called, an error is
> printed ("listen: Address already in use") and
> x11_create_display_inet() exits unsuccessfully.
>
> I tried to report it to <openssh-unix-dev@mindrot.org> but I'm not a
> member and didn't find a way to become one. Sending it to
> <openssh@openssh.com> is most likely not a good idea since
> <https://man.openbsd.org/listen.2> shows that EADDRINUSE is not an
> expected error in OpenBSD's listen() call.
It's probably best to report it as a bug in portable OpenSSH here:
https://bugzilla.mindrot.org/
> Is it possible to fix this with a patch in the debian package? I'd
> gladly provide the patch but I'm not a C developer and sshd is most
> likely a risky thing to touch without experience.
It's possible, but it would really be better to get it fixed upstream;
even if I were to write a patch for this kind of thing, I'd want to get
it reviewed by upstream anyway, so best to start by reporting a bug
there.
--
Colin Watson [cjwatson@debian.org]
Reply to: