aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 fd6e75636..4018045f8 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5584,10 +5584,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;