diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-31 16:12:39 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-31 16:12:39 +0000 |
commit | 0fb3863229ee7afdf77fe8d4070bfc29d7b08480 (patch) | |
tree | 2178118efef1fb19f3902e0092de48334eb159e9 /channels/chan_sip.c | |
parent | 7945b5def287dd93b91d526aaa48d407dcfb49ad (diff) |
It is now possible for this path of execution to have the frame pointer be NULL, therefore we need to check for it before trying to access it. (issue #9836 reported by barthpbx)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@66764 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1a676ebd8..0938776e6 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3043,7 +3043,7 @@ static struct ast_frame *sip_rtp_read(struct ast_channel *ast, struct sip_pvt *p return &null_frame; if (p->owner) { /* We already hold the channel lock */ - if (f->frametype == AST_FRAME_VOICE) { + if (f && f->frametype == AST_FRAME_VOICE) { if (f->subclass != p->owner->nativeformats) { if (!(f->subclass & p->jointcapability)) { ast_log(LOG_DEBUG, "Bogus frame of format '%s' received from '%s'!\n", |