mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-19 14:10:01 +00:00
When 'sip set debug' is enabled, and the last line of an incoming SIP message
is not properly newline terminated, ensure that that line is included in the debug output. (part of issue #16268) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@230875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5111,6 +5111,8 @@ static int parse_request(struct sip_request *req)
|
||||
|
||||
/* Check a non-newline-terminated last line */
|
||||
if (!ast_strlen_zero(req->line[f])) {
|
||||
if (sipdebug && option_debug > 3)
|
||||
ast_log(LOG_DEBUG, "Line: %s (%d)\n", req->line[f], (int) strlen(req->line[f]));
|
||||
req->lines++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user