aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ejabberd_c2s.erl3
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,