Skip to content

Commit

Permalink
pjsip_find_msg: Log warning if Content-Length field not found (#3960)
Browse files Browse the repository at this point in the history
  • Loading branch information
pespin committed May 20, 2024
1 parent 1dab9b6 commit 7394b1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pjsip/src/pjsip/sip_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7394b1e

Please sign in to comment.