diff options
author | Alexey Shchepin <alexey@process-one.net> | 2014-01-21 13:40:03 +0200 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2014-01-21 13:44:29 +0200 |
commit | 9422164ddab5d8f0f82679ee2d527503b5a35823 (patch) | |
tree | 35732df626a07f4c7c27063811f0a6ef8932520c /src | |
parent | Fix for the previous commit (diff) |
Clear SASL state after finishing auth
Diffstat (limited to 'src')
-rw-r--r-- | src/ejabberd_c2s.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index c04c97933..ae5fc97b8 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -652,6 +652,7 @@ wait_for_feature_request({xmlstreamelement, El}, StateData#state{streamid = new_id(), authenticated = true, auth_module = AuthModule, + sasl_state = undefined, user = U}); {continue, ServerOut, NewSASLState} -> send_element(StateData, @@ -809,6 +810,7 @@ wait_for_sasl_response({xmlstreamelement, El}, StateData#state{streamid = new_id(), authenticated = true, auth_module = AuthModule, + sasl_state = undefined, user = U}); {ok, Props, ServerOut} -> (StateData#state.sockmod):reset_stream(StateData#state.socket), @@ -829,6 +831,7 @@ wait_for_sasl_response({xmlstreamelement, El}, StateData#state{streamid = new_id(), authenticated = true, auth_module = AuthModule, + sasl_state = undefined, user = U}); {continue, ServerOut, NewSASLState} -> send_element(StateData, |