Merged revisions 187674 via svnmerge from

https://origsvn.digium.com/svn/asterisk/trunk

........
  r187674 | tilghman | 2009-04-10 10:59:40 -0500 (Fri, 10 Apr 2009) | 4 lines
  
  Ensure pvt is not NULL before dereferencing it.
  (closes issue #14784)
   Reported by: pj
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@187679 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.2
Tilghman Lesher 17 years ago
parent e2af9818e0
commit 29aec866aa

@ -5691,7 +5691,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)
if (IS_SIP_TECH(bridge->tech) && q && q->rtp)
ast_rtp_set_vars(bridge, q->rtp);
}
@ -19998,7 +19998,7 @@ static int handle_request_bye(struct sip_pvt *p, struct sip_request *req)
if (bridge) {
struct sip_pvt *q = bridge->tech_pvt;
if (IS_SIP_TECH(bridge->tech) && q->rtp)
if (IS_SIP_TECH(bridge->tech) && q && q->rtp)
ast_rtp_set_vars(bridge, q->rtp);
}

Loading…
Cancel
Save