]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_pubsub: Prevent crashes on final NOTIFY. 10/1510/1
authorMark Michelson <mmichelson@digium.com>
Mon, 28 Sep 2015 21:36:25 +0000 (16:36 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 22 Oct 2015 21:19:10 +0000 (16:19 -0500)
commit7a22fc27fbf85ca27869f9e103f517de527d84f4
treee38974d4aabcf429ea6a17897d77dd481b52e6b4
parent7fc9a998b12057ba0725d5d8af8d3abf206ca1d6
res_pjsip_pubsub: Prevent crashes on final NOTIFY.

The SIP dialog is removed from the subscription tree when the final
NOTIFY is sent. However, after the final NOTIFY is sent, the persistence
update function still attempts to access the cseq from the dialog,
resulting in a crash.

This fix removes the subscription persistence at the same time that the
dialog is removed from the subscription tree. This way, there is no
attempt to update persistence when the subscription is being destroyed.

Change-Id: Ibb46977a6cef9c51dc95f40f43446e3d11eed5bb
res/res_pjsip_pubsub.c