summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Nicholson <mnicholson@digium.com>2008-12-08 17:23:41 +0000
committerMatthew Nicholson <mnicholson@digium.com>2008-12-08 17:23:41 +0000
commit8b77d66a6105ff1c8482d620db3679fd4e01072f (patch)
treeb019bc1a15c62d9f3182b382e04fae4a04f18ffa
parentf6dda1e544e1661c8f45cffeca866f45665d61f2 (diff)
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
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index e230c51ce..474e87924 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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);
}