]> git.ipfire.org Git - thirdparty/asterisk.git/commit
PJSIP: Prevent crash if channel has gone away
authorKinsey Moore <kmoore@digium.com>
Wed, 26 Feb 2014 13:33:52 +0000 (13:33 +0000)
committerKinsey Moore <kmoore@digium.com>
Wed, 26 Feb 2014 13:33:52 +0000 (13:33 +0000)
commita4dfffc124e4219edaed918197130af106e69c50
tree4e1cc7287a82f7325c16b7a7202d2199969b1412
parent4cf4c0c61a7025a86c8c9e441418e4a05ade6b96
PJSIP: Prevent crash if channel has gone away

It is currently possible for an ast_sip_session to exist without an
associated channel as is the case when a new invite is coming in or
just after a hangup is issued on a chan_pjsip channel. Part of the
attended transfer code assumed the channel would be non-NULL and used
it as such causing a crash. This bug was exposed thanks to the attended
transfer ARI test in the test suite.

(closes issue ASTERISK-23287)
Reported by: Matt Jordan

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