mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 01:45:11 +00:00
Merged revisions 161721 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r161721 | mnicholson | 2008-12-08 11:23:41 -0600 (Mon, 08 Dec 2008) | 7 lines Fix a crash that can occur on a transfer in chan_sip when attempting to collect rtp stats. (closes issue #13956) Reported by: chris-mac Tested by: chris-mac ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@161722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5149,7 +5149,7 @@ static int sip_hangup(struct ast_channel *ast)
|
||||
if (bridge) {
|
||||
struct sip_pvt *q = bridge->tech_pvt;
|
||||
|
||||
if (IS_SIP_TECH(bridge->tech) && q->rtp)
|
||||
if (IS_SIP_TECH(bridge->tech) && q)
|
||||
ast_rtp_set_vars(bridge, q->rtp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user