Fix #222: SIPE crashes when groupchat session expires (I)
commita9a8a147e232c322f7d5128a480a1d96ed234370
authorStefan Becker <chemobejk@gmail.com>
Mon, 25 Nov 2013 12:26:42 +0000 (25 14:26 +0200)
committerStefan Becker <chemobejk@gmail.com>
Mon, 25 Nov 2013 14:00:20 +0000 (25 16:00 +0200)
treed72e8700e4b4820084d069f6910928db76c1952d
parent70da67160e72daba25b13e5bb949b335011c7b26
Fix #222: SIPE crashes when groupchat session expires (I)

The debug log shows that for some unknown reason the groupchat session
has expired and the server responds with 481. This response causes SIPE
to automatically close the dialog. The next time we send try to send a
message to the groupchat session we get NULL for a dialog. We didn't
check for this condition and therefore the code crashes.

As a quick fix we now check dialog == NULL and don't send the message.

(cherry picked from commit eeb27a3e53c4591f417b6d8ce3cbb738a36a4de5)
src/core/sipe-groupchat.c