From a5b91784e6e09d206267a14fae7843440fbca339 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 7 Mar 2013 12:19:13 -0500 Subject: [PATCH] we need to retain trailing crlf --- modules/rtpproxy-ng/rtpproxy_funcs.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/modules/rtpproxy-ng/rtpproxy_funcs.c b/modules/rtpproxy-ng/rtpproxy_funcs.c index 31755e940..eaf3f39c7 100644 --- a/modules/rtpproxy-ng/rtpproxy_funcs.c +++ b/modules/rtpproxy-ng/rtpproxy_funcs.c @@ -168,7 +168,6 @@ other: int extract_body(struct sip_msg *msg, str *body ) { char c; - int skip; int ret; str mpdel; char *rest, *p1, *p2; @@ -268,17 +267,6 @@ error: return -1; done: - for (skip = 0; skip < body->len; skip++) { - c = body->s[body->len - skip - 1]; - if (c != '\r' && c != '\n') - break; - } - if (skip == body->len) { - LM_ERR("empty body"); - goto error; - } - body->len -= skip; - /*LM_DBG("DEBUG:extract_body:=|%.*s|\n",body->len,body->s);*/ return 1; }