]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
It is now possible for this path of execution to have the frame pointer be NULL,...
authorJoshua Colp <jcolp@digium.com>
Thu, 31 May 2007 16:12:39 +0000 (16:12 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 31 May 2007 16:12:39 +0000 (16:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@66764 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 1a676ebd8732bcd78056e82bbfd14fd49d3ad618..0938776e687ee3255679c023a205ad392afd74b6 100644 (file)
@@ -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",