mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject [1/2] git commit: [SSH-203] Make sure that after authentication, the state is actually modified only after the various internal fields have been updated
Date Fri, 19 Jul 2013 08:04:11 GMT
Updated Branches:
  refs/heads/master 2ab545896 -> ddbe54177


[SSH-203] Make sure that after authentication, the state is actually modified only after the
various internal fields have been updated

Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/bb9137b2
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/bb9137b2
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/bb9137b2

Branch: refs/heads/master
Commit: bb9137b2f6ea451cb5e6fdd30c8de282ee60d051
Parents: 2ab5458
Author: Guillaume Nodet <gnodet@apache.org>
Authored: Fri Jul 19 10:01:28 2013 +0200
Committer: Guillaume Nodet <gnodet@apache.org>
Committed: Fri Jul 19 10:01:28 2013 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/sshd/server/session/ServerSession.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/bb9137b2/sshd-core/src/main/java/org/apache/sshd/server/session/ServerSession.java
----------------------------------------------------------------------
diff --git a/sshd-core/src/main/java/org/apache/sshd/server/session/ServerSession.java b/sshd-core/src/main/java/org/apache/sshd/server/session/ServerSession.java
index 531dfd6..3c7b68d 100644
--- a/sshd-core/src/main/java/org/apache/sshd/server/session/ServerSession.java
+++ b/sshd-core/src/main/java/org/apache/sshd/server/session/ServerSession.java
@@ -503,9 +503,9 @@ public class ServerSession extends AbstractSession {
 
                     buffer = createBuffer(SshConstants.Message.SSH_MSG_USERAUTH_SUCCESS,
0);
                     writePacket(buffer);
-                    setState(State.Running);
                     this.authed = true;
                     unscheduleAuthTimer();
+                    setState(State.Running);
                     scheduleIdleTimer();
                     log.info("Session {}@{} authenticated", getUsername(), getIoSession().getRemoteAddress());
 


Mime
View raw message