incorrect sftp version compatibility check

This commit is contained in:
Shikhar Bhushan
2010-08-06 22:15:42 +01:00
parent a1d17982ae
commit 9a4a24737f

View File

@@ -77,7 +77,7 @@ public class SFTPEngine
operativeVersion = response.readInt();
log.info("Client version {}, server version {}", clientVersion, operativeVersion);
if (operativeVersion < clientVersion)
if (clientVersion < operativeVersion)
throw new SFTPException("Server reported protocol version: " + operativeVersion);
while (response.available() > 0)