diff options
author | Alexey Shchepin <alexey@process-one.net> | 2005-04-17 21:39:41 +0000 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2005-04-17 21:39:41 +0000 |
commit | e46b28f27ffe43c1f9466d1774eb35fc80a9ce09 (patch) | |
tree | 3827724bd7c505cc3603f1b13ac8d8dfd9210f22 /src/ejabberd_c2s.erl | |
parent | Merged Process One contribution (Virtual Hosting) (diff) |
Cleanup
SVN Revision: 309
Diffstat (limited to 'src/ejabberd_c2s.erl')
-rw-r--r-- | src/ejabberd_c2s.erl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index 3873ac171..43a8a1084 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -445,7 +445,8 @@ wait_for_feature_request({xmlstreamelement, El}, StateData) -> ?INFO_MSG("(~w) Accepted authentication for ~s", [StateData#state.socket, U]), {next_state, wait_for_stream, - StateData#state{authentificated = true, + StateData#state{streamid = new_id(), + authentificated = true, user = U }}; {continue, ServerOut, NewSASLState} -> @@ -475,6 +476,7 @@ wait_for_feature_request({xmlstreamelement, El}, StateData) -> {next_state, wait_for_stream, StateData#state{sockmod = tls, socket = TLSSocket, + streamid = new_id(), tls_enabled = true }}; _ -> @@ -533,7 +535,8 @@ wait_for_sasl_response({xmlstreamelement, El}, StateData) -> ?INFO_MSG("(~w) Accepted authentication for ~s", [StateData#state.socket, U]), {next_state, wait_for_stream, - StateData#state{authentificated = true, + StateData#state{streamid = new_id(), + authentificated = true, user = U }}; {continue, ServerOut, NewSASLState} -> |