diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-01-17 22:06:26 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-01-17 22:06:26 +0300 |
commit | b8db0a8ed6f4f664777c00b1745ae18727aa4a93 (patch) | |
tree | dedcf64f45d95aacb2190938a53d94d2746604bb | |
parent | Get rid of ejabberd_frontend_socket (diff) |
Reset XML stream before sending SASL <success/>
-rw-r--r-- | src/xmpp_stream_in.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp_stream_in.erl b/src/xmpp_stream_in.erl index b29848e7b..b84a971f7 100644 --- a/src/xmpp_stream_in.erl +++ b/src/xmpp_stream_in.erl @@ -809,6 +809,7 @@ process_sasl_success(Props, ServerOut, mod := Mod, sasl_mech := Mech} = State) -> User = identity(Props), AuthModule = proplists:get_value(auth_module, Props), + SockMod:reset_stream(Socket), State1 = send_pkt(State, #sasl_success{text = ServerOut}), case is_disconnected(State1) of true -> State1; @@ -819,7 +820,6 @@ process_sasl_success(Props, ServerOut, case is_disconnected(State2) of true -> State2; false -> - SockMod:reset_stream(Socket), State3 = maps:remove(sasl_state, maps:remove(sasl_mech, State2)), State3#{stream_id => new_id(), |