diff --git a/pjsip/src/pjsip/sip_parser.c b/pjsip/src/pjsip/sip_parser.c index 24966b658..54ba6dbba 100644 --- a/pjsip/src/pjsip/sip_parser.c +++ b/pjsip/src/pjsip/sip_parser.c @@ -937,6 +937,8 @@ PJ_DEF(pj_status_t) pjsip_find_msg( const char *buf, pj_size_t size, /* Found Content-Length? */ if (content_length == -1) { + /* As per RFC3261 7.4.2, 7.5, 20.14, Content-Length is mandatory over TCP. */ + PJ_LOG(2, (THIS_FILE, "Field Content-Length not found!")); return status; }