]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Check to make sure an RTP structure exists before calling ast_rtp_new_source on it.
authorJoshua Colp <jcolp@digium.com>
Fri, 16 May 2008 20:28:11 +0000 (20:28 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 16 May 2008 20:28:11 +0000 (20:28 +0000)
(closes issue #12669)
Reported by: sbisker

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@116799 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index d1ef0d6ddad8f98cc4621ee1649ce634d2f43951..ee84c666a63faaf6deb4f9b4a8819f3f1ca752e9 100644 (file)
@@ -2863,7 +2863,9 @@ static int skinny_indicate(struct ast_channel *ast, int ind, const void *data, s
        case AST_CONTROL_PROCEEDING:
                break;
        case AST_CONTROL_SRCUPDATE:
-               ast_rtp_new_source(sub->rtp);
+               if (sub->rtp) {
+                       ast_rtp_new_source(sub->rtp);
+               }
                break;
        default:
                ast_log(LOG_WARNING, "Don't know how to indicate condition %d\n", ind);