mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-16 04:36:49 +00:00
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/trunk@161721 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+1
-1
@@ -5556,7 +5556,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