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

channels/chan_sip.c

index ab1505e556d0ee06bea8a9dcf09483b8aee9a851..606657cfb208bccbff1373ccb8ca5d973e0fe90f 100644 (file)
@@ -4565,7 +4565,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)))