res_pjsip_pubsub: potential crash on timeout
authorKevin Harwell <kharwell@digium.com>
Tue, 28 Jan 2014 23:40:28 +0000 (23:40 +0000)
committerKevin Harwell <kharwell@digium.com>
Tue, 28 Jan 2014 23:40:28 +0000 (23:40 +0000)
commit565198b44bc77792affcf9ce19909b63bd90870c
tree244dc59857df132da7981e2145246b16b250f809
parentade5c8a2a47d2c2b1b0a4ab70eabd4bc095bd289
res_pjsip_pubsub: potential crash on timeout

What seems to be happening is if a subscription has been terminated and the
subscription timeout/expires is less than the time it takes for all pending
transactions (currently on the subscription) to end then the subscription
timer will not have been canceled yet and sub will be null.  Since the
subscription has already been canceled nothing needs to be done so a null
check in the asterisk code is sufficient in working around this problem.

(closes issue ASTERISK-23129)
Reported by: Dan Jenkins
........

Merged revisions 406847 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@406848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_pubsub.c