From d355eb9c8414b80d1dcc8628d3ae9f7e565ca91d Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Tue, 15 Jan 2008 20:08:43 +0000 Subject: [PATCH] Based on the boundary found move over the correct amount. (closes issue #11750) Reported by: tasker git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@98934 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 418f4df852..f04dd544e2 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4864,10 +4864,13 @@ static int find_sdp(struct sip_request *req) return 0; /* if there is no boundary marker, it's invalid */ - if (!(search = strcasestr(content_type, ";boundary=")) && (!(search = strcasestr(content_type, "; boundary=")))) + if ((search = strcasestr(content_type, ";boundary="))) + search += 10; + else if ((search = strcasestr(content_type, "; boundary="))) + search += 11; + else return 0; - search += 10; if (ast_strlen_zero(search)) return 0; -- 2.47.3