]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_pubsub: Prevent crashes on final NOTIFY. 97/1497/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:16:56 +0000 (16:16 -0500)
commitad395080957b33a17f6cfe2c83697bebef286c25
tree84e868184f0059f34c91972027bcfb7ef79dda73
parent067f40876001255aed9bf8b65567d1c25961aebd
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