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
1.6.2
Matthew Nicholson 17 years ago
parent f6dda1e544
commit 8b77d66a61

@ -5556,7 +5556,7 @@ static int sip_hangup(struct ast_channel *ast)
if (bridge) { if (bridge) {
struct sip_pvt *q = bridge->tech_pvt; 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); ast_rtp_set_vars(bridge, q->rtp);
} }

Loading…
Cancel
Save