]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix multipart/mixed SDP support (issue 8010, alphaque)
authorOlle Johansson <oej@edvina.net>
Fri, 10 Nov 2006 18:50:08 +0000 (18:50 +0000)
committerOlle Johansson <oej@edvina.net>
Fri, 10 Nov 2006 18:50:08 +0000 (18:50 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47452 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 44cb5c9449bf7ed4340e38e644980f31ec0a91e2..610ba24e21346dbbb0a6310a53a88472684b4178 100644 (file)
@@ -3504,7 +3504,9 @@ static int find_sdp(struct sip_request *req)
        for (x = 0; x < (req->lines - 2); x++) {
                if (!strncasecmp(req->line[x], boundary, strlen(boundary)) &&
                    !strcasecmp(req->line[x + 1], "Content-Type: application/sdp")) {
-                       req->sdp_start = x + 2;
+                       x += 2;
+                       req->sdp_start = x;
+
                        /* search for the end of the body part */
                        for ( ; x < req->lines; x++) {
                                if (!strncasecmp(req->line[x], boundary, strlen(boundary)))