]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_exten_state: PJSIPShowSubscriptionsInbound causes crash
authorKevin Harwell <kharwell@digium.com>
Thu, 30 Oct 2014 21:12:25 +0000 (21:12 +0000)
committerKevin Harwell <kharwell@digium.com>
Thu, 30 Oct 2014 21:12:25 +0000 (21:12 +0000)
commita0b803140b14fd0729bfd12539cda4d8dd4e5c27
treef24a8d738cfd641bad5b1549e35fb502f6ab7e51
parenta9dd090378dc43bb83757bfd42f5e7cfef3690cf
res_pjsip_exten_state: PJSIPShowSubscriptionsInbound causes crash

Currently, it is possible for some subscriptions to get into a NULL state. When
this occurs and the PJSIPShowSubscriptionsInbound ami action is issued and a
device is subscribed for extension state then the associated subscription state
object can't be located.  The code then attempts to dereference a NULL object.
Added a NULL check to avoid the problem.

Reported by: John Bigelow

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@426779 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_exten_state.c