Skip to content

Commit

Permalink
Fix default value in fallback for handle_bind2_inline hook
Browse files Browse the repository at this point in the history
This can cause crash when used with older ejabberd like in
issue ejabberd#4177
  • Loading branch information
prefiks committed Mar 15, 2024
1 parent 1b1418a commit 0451c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xmpp_stream_in.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ process_bind2(#{sasl2_ua_id := UAId, user := User, server := Server} = State, El
{ok, State1} ->
{State2, _, ResultEls} =
try callback(handle_bind2_inline, SubEls, State1)
catch _:{?MODULE, undef} -> {State1, []}
catch _:{?MODULE, undef} -> {State1, SubEls, []}
end,
{State2, [#bind2_bound{sub_els = ResultEls}]};
_ ->
Expand Down

0 comments on commit 0451c07

Please sign in to comment.