Module: sip-router
Branch: master
Commit: 2e033c85d2c66c47de15f355298012f012adb15c
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2e033c8…
Author: Richard Fuchs <rfuchs(a)sipwise.com>
Committer: Richard Fuchs <rfuchs(a)sipwise.com>
Date: Tue Oct 29 15:30:36 2013 -0400
rtpproxy-ng: fix extraction of multipart SDP body
reported by: Jasmin Schnatterbeck
---
modules/rtpproxy-ng/rtpproxy_funcs.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/rtpproxy-ng/rtpproxy_funcs.c b/modules/rtpproxy-ng/rtpproxy_funcs.c
index b0d872b..1c283e5 100644
--- a/modules/rtpproxy-ng/rtpproxy_funcs.c
+++ b/modules/rtpproxy-ng/rtpproxy_funcs.c
@@ -257,6 +257,7 @@ int extract_body(struct sip_msg *msg, str *body )
} /* end of while */
if(c==1)
{
+ while(rest && (*rest=='\r' || *rest=='\n')) rest++;
body->s = rest;
body->len = p2-rest;
goto done;