dect
/
asterisk
Archived
13
0
Fork 0

Ensure pvt is not NULL before dereferencing it.

(closes issue #14784)
 Reported by: pj


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187674 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2009-04-10 15:59:40 +00:00
parent a99460f913
commit 5de3fe02ad
1 changed files with 2 additions and 2 deletions

View File

@ -5803,7 +5803,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_instance_set_stats_vars(bridge, q->rtp);
}
}
@ -20656,7 +20656,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_instance_set_stats_vars(bridge, q->rtp);
}
}