25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix C2S session data leak (#1078)

This commit is contained in:
Evgeniy Khramtsov 2016-05-09 14:18:47 +03:00
parent 068db1a2d9
commit be2a9e35ae

View File

@ -1053,7 +1053,11 @@ wait_for_bind({xmlstreamelement, El}, StateData) ->
children =
[{xmlcdata,
jid:to_string(JID)}]}]}]},
send_element(StateData3, jlib:iq_to_xml(Res)),
try
send_element(StateData3, jlib:iq_to_xml(Res))
catch exit:normal ->
close(self())
end,
fsm_next_state_pack(
session_established,
StateData3);