From: Joshua Colp Date: Fri, 16 May 2008 20:28:11 +0000 (+0000) Subject: Check to make sure an RTP structure exists before calling ast_rtp_new_source on it. X-Git-Tag: 1.4.21-rc1~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53061c109fea479db05449ae7b4874d1307a8f3a;p=thirdparty%2Fasterisk.git 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 --- diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index d1ef0d6dda..ee84c666a6 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -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);