aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-15 20:08:43 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-15 20:08:43 +0000
commita3687fd864f0e4ac309186a25da7cb4472451a96 (patch)
tree0c09fcda51efb29317ddc188e81fffc0a28dde33
parenta15e6eb0fde27ffb4ec9016cf82bb722daf30607 (diff)
Based on the boundary found move over the correct amount.
(closes issue #11750) Reported by: tasker git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@98934 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 418f4df85..f04dd544e 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;