Fix #255: Crash when PersistentChat sends BYE instead of response
commitfeadf18bcd8e2745956ddf87d9d375d4c087a51f
authorStefan Becker <chemobejk@gmail.com>
Sun, 25 May 2014 10:24:11 +0000 (25 13:24 +0300)
committerStefan Becker <chemobejk@gmail.com>
Sun, 25 May 2014 10:40:04 +0000 (25 13:40 +0300)
tree4641cf5c2cb851da009476da7b6e3748d51a7f14
parentc959abea2d0e86be806b6c0f8961211858f9ad88
Fix #255: Crash when PersistentChat sends BYE instead of response

The log provided by the user shows that he is probably not allowed to
use PersistentChat. After a successful INVITE our first XCCOS command
causes the server to send a BYE, which causes SIPE to close the dialog.
Our 200 response to the BYE triggers a 481 response to which SIPE tries
to answer with a BYE without checking that the dialog is already closed.

Fix this by suppressing the BYE when dialog is NULL.

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