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

Guillaume Nodet resolved SSHD-335.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 0.13.0
         Assignee: Guillaume Nodet

https://git-wip-us.apache.org/repos/asf?p=mina-sshd.git;a=commit;h=f0921ddbe7e16e30e0ceb470c79fcb102e8634e5

> Wrong EOF error handling in sshd agent
> --------------------------------------
>
>                 Key: SSHD-335
>                 URL: https://issues.apache.org/jira/browse/SSHD-335
>             Project: MINA SSHD
>          Issue Type: Bug
>            Reporter: Tomas Kopal
>            Assignee: Guillaume Nodet
>             Fix For: 0.13.0
>
>
> In sshd-core/src/main/java/org/apache/sshd/agent/unix/AgentServer.java, 
> method SshAgentSession:run(), there is a check for end of file return code 
> (result == Status.APR_EOF). However tomcat native returns codes negative, so 
> the condition never matches.
> It needs to be changed to (result == -Status.APR_EOF).
> (For an example see e.g. 
> tomcat-native-1.1.31-src\jni\java\org\apache\tomcat\jni\socket\AprSocket.java,
>  processReadResult method: if (read == -Status.APR_EOF || read == -1)).
> Other places where tomcat jni return codes are used should be checked, I 
> expect the same problem there as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to