You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by gn...@apache.org on 2011/07/01 10:51:01 UTC

svn commit: r1141874 - /mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/sftp/SftpSubsystem.java

Author: gnodet
Date: Fri Jul  1 08:51:00 2011
New Revision: 1141874

URL: http://svn.apache.org/viewvc?rev=1141874&view=rev
Log:
[SSHD-116] Do not throw an exception when receiving an unsupported SFTP message

Modified:
    mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/sftp/SftpSubsystem.java

Modified: mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/sftp/SftpSubsystem.java
URL: http://svn.apache.org/viewvc/mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/sftp/SftpSubsystem.java?rev=1141874&r1=1141873&r2=1141874&view=diff
==============================================================================
--- mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/sftp/SftpSubsystem.java (original)
+++ mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/sftp/SftpSubsystem.java Fri Jul  1 08:51:00 2011
@@ -763,10 +763,11 @@ public class SftpSubsystem implements Co
                 break;
             }
 
-            default:
+            default: {
                 log.error("Received: {}", type);
                 sendStatus(id, SSH_FX_OP_UNSUPPORTED, "Command " + type + " is unsupported or not implemented");
-                throw new IllegalStateException();
+                break;
+            }
         }
     }