mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-18 22:15:20 +02:00
Fix C2S session data leak (#1078)
This commit is contained in:
parent
068db1a2d9
commit
be2a9e35ae
|
@ -1053,7 +1053,11 @@ wait_for_bind({xmlstreamelement, El}, StateData) ->
|
||||||
children =
|
children =
|
||||||
[{xmlcdata,
|
[{xmlcdata,
|
||||||
jid:to_string(JID)}]}]}]},
|
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(
|
fsm_next_state_pack(
|
||||||
session_established,
|
session_established,
|
||||||
StateData3);
|
StateData3);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user