Skip to content

Commit

Permalink
Merge pull request #4052 from esl/fix-undefined-host-type
Browse files Browse the repository at this point in the history
Fix handling of the undefined host type for stream errors
  • Loading branch information
DenysGonchar committed Jul 4, 2023
2 parents 9b6ac71 + 3f3dae4 commit 8b12212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c2s/mongoose_c2s.erl
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ sm_unset_reason(_) ->

%% @doc This is the termination point - from here stanza is sent to the user
-spec do_send_element(data(), exml:element(), mongoose_acc:t()) -> mongoose_acc:t().
do_send_element(StateData = #c2s_data{host_type = <<>>}, El, Acc) ->
do_send_element(StateData = #c2s_data{host_type = undefined}, El, Acc) ->
send_xml(StateData, El),
Acc;
do_send_element(StateData = #c2s_data{host_type = HostType}, #xmlel{} = El, Acc) ->
Expand Down

0 comments on commit 8b12212

Please sign in to comment.