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:
Kevin P. Fleming
2009-11-23 15:31:02 +00:00
parent afd2b5e203
commit 851de5edaa
+2
View File
@@ -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++;
}