Check to make sure an RTP structure exists before calling ast_rtp_new_source on it.

(closes issue #12669)
Reported by: sbisker


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@116799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2008-05-16 20:28:11 +00:00
parent 01f5aee7ac
commit 53061c109f

View 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);