> + if ((hdrs_len+2<=msg->len) &&
> (strncmp(CRLF,msg->unparsed,CRLF_LEN)==0) )
> + body.s = msg->unparsed + CRLF_LEN;
> + else if ( (hdrs_len+1<=msg->len) &&
> + (*(msg->unparsed)=='\n' || *(msg->unparsed)=='\r' ) )
> + body.s = msg->unparsed + 1;
> + else {
> + /* no body */
> + body.s = NULL;
> + body.len = 0;
> + }
> +
> + /* determine the length of the body */
> + body.len = msg->buf + msg->len - body.s;
> +
> + if (get_content_length(msg) != body.len) {
> + snprintf(reason, MAX_REASON-1, "invalid body - content length
> %ld different then "
different *than
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/294/files#r16042525
_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel