diff --git a/src/mod_scram_upgrade.erl b/src/mod_scram_upgrade.erl index 04dae1dd5..c9a1e94f5 100644 --- a/src/mod_scram_upgrade.erl +++ b/src/mod_scram_upgrade.erl @@ -111,8 +111,8 @@ c2s_handle_sasl2_task_data({_, #{user := User, server := Server, #scram{hash = Algo, iterationcount = Iter, salt = Salt, serverkey = ServerKey, storedkey = StoredKey}), State2 = maps:remove(scram_upgrade, State), - InlineEls = lists:keydelete(sasl_upgrade, 1, InlineEls), - case ejabberd_c2s:handle_sasl2_inline(InlineEls, State2) of + InlineEls2 = lists:keydelete(sasl_upgrade, 1, InlineEls), + case ejabberd_c2s:handle_sasl2_inline(InlineEls2, State2) of {State3, NewEls, Results} -> {success, NewEls, Results, State3} end;