24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-14 22:00:16 +02: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);