You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Darren Shepherd (JIRA)" <ji...@apache.org> on 2013/12/16 22:07:07 UTC

[jira] [Updated] (SSHD-270) When remote port != 0 for tcpip-forward the server will not reply w/ a port

     [ https://issues.apache.org/jira/browse/SSHD-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darren Shepherd updated SSHD-270:
---------------------------------

    Attachment: 0001-SSHD-270-Only-read-port-from-the-result-if-the-remot.patch

A patch to not read the port from the result if remote port has been set

> When remote port != 0 for tcpip-forward the server will not reply w/ a port
> ---------------------------------------------------------------------------
>
>                 Key: SSHD-270
>                 URL: https://issues.apache.org/jira/browse/SSHD-270
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Darren Shepherd
>         Attachments: 0001-SSHD-270-Only-read-port-from-the-result-if-the-remot.patch
>
>
> DefaultTcpipForwarder.startRemotePortForwarding() currently reads the remote port from the tcpip-forward result.  According the to the ssh protocol, the server should only reply with a port if wantReply is true and remote port != 0.  
> Currently if you call startRemotePortForwarding with a remote port set, you will get a buffer underrun



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)