24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-07-06 23:22:36 +02:00

Do not send <success/> twice when SCRAM-SHA-1 is used.

This is a merge bug actually
This commit is contained in:
Evgeniy Khramtsov 2011-09-15 19:24:41 +10:00
parent 8f27a697c0
commit 54acf9bde4

View File

@ -936,11 +936,6 @@ wait_for_sasl_response({xmlstreamelement, El}, StateData) ->
{ok, Props, ServerOut} ->
(StateData#state.sockmod):reset_stream(
StateData#state.socket),
send_element(StateData,
{xmlelement, "success",
[{"xmlns", ?NS_SASL}],
[{xmlcdata,
jlib:encode_base64(ServerOut)}]}),
U = xml:get_attr_s(username, Props),
AuthModule = xml:get_attr_s(auth_module, Props),
?INFO_MSG("(~w) Accepted authentication for ~s by ~p",
@ -955,7 +950,9 @@ wait_for_sasl_response({xmlstreamelement, El}, StateData) ->
false ->
send_element(StateData,
{xmlelement, "success",
[{"xmlns", ?NS_SASL}], []}),
[{"xmlns", ?NS_SASL}],
[{xmlcdata,
jlib:encode_base64(ServerOut)}]}),
fsm_next_state(wait_for_stream,
StateData#state{
streamid = new_id(),