25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-16 17:15:55 +01:00

mod_scram_upgrade: Don't abort the upgrade

Fix a matching mistake that made the SASL mechanism upgrade fail.
This commit is contained in:
Holger Weiss 2024-12-01 20:23:52 +01:00
parent 344775aa8e
commit b90c48f837

View File

@ -111,8 +111,8 @@ c2s_handle_sasl2_task_data({_, #{user := User, server := Server,
#scram{hash = Algo, iterationcount = Iter, salt = Salt, #scram{hash = Algo, iterationcount = Iter, salt = Salt,
serverkey = ServerKey, storedkey = StoredKey}), serverkey = ServerKey, storedkey = StoredKey}),
State2 = maps:remove(scram_upgrade, State), State2 = maps:remove(scram_upgrade, State),
InlineEls = lists:keydelete(sasl_upgrade, 1, InlineEls), InlineEls2 = lists:keydelete(sasl_upgrade, 1, InlineEls),
case ejabberd_c2s:handle_sasl2_inline(InlineEls, State2) of case ejabberd_c2s:handle_sasl2_inline(InlineEls2, State2) of
{State3, NewEls, Results} -> {State3, NewEls, Results} ->
{success, NewEls, Results, State3} {success, NewEls, Results, State3}
end; end;