<p>In modules/sipmsgops/sipmsgops.c:</p>
<pre style='color:#555'>> + 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 "
</pre>
<p>different *than</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/294/files#r16042525">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMzM2NTc3NCwiZGF0YSI6eyJpZCI6MzkzMTY3NDd9fQ==--bf87eda7749a04ee6d978dca2cc4fce0d992f89c.gif" width="1" /></p>