25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Clear SASL state after finishing auth

This commit is contained in:
Alexey Shchepin 2014-01-21 13:40:03 +02:00
parent cbbfd921b4
commit 9422164dda

View File

@ -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,