From: Martin Pycko Date: Mon, 31 Mar 2003 15:55:29 +0000 (+0000) Subject: Fix problem with processing too many lines in process_sdp X-Git-Tag: 0.4.0~112 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8420172baae05bd581b6891f72b98e9d828d9ba;p=thirdparty%2Fasterisk.git Fix problem with processing too many lines in process_sdp git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@726 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 98644ad39e..882d3dffb3 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1487,6 +1487,8 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req) } ast_rtp_set_m_type(p->rtp, codec); codecs += len; + /* Fix going to: a=rtpmap:0 PCMU/8000 line */ + if ( (int)(strlen(m)-(int)(codecs-m)) < 0 ) break; } // Next, scan through each "a=rtpmap:" line, noting each