mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
fix continuation line parsing (bug #2892)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2560,7 +2560,7 @@ static int lws2sws(char *msgbuf, int len)
|
||||
if (h + 1 == len)
|
||||
break;
|
||||
/* Check for a continuation line */
|
||||
if (msgbuf[h + 1] == ' ') {
|
||||
if (msgbuf[h + 1] == ' ' || msgbuf[h + 1] == '\t') {
|
||||
/* Merge continuation line */
|
||||
h++;
|
||||
continue;
|
||||
@@ -2570,7 +2570,6 @@ static int lws2sws(char *msgbuf, int len)
|
||||
lws = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (msgbuf[h] == ' ' || msgbuf[h] == '\t') {
|
||||
if (lws) {
|
||||
h++;
|
||||
@@ -7656,7 +7655,6 @@ static int sipsock_read(int *id, int fd, short events, void *ignore)
|
||||
debug = sip_debug_test_addr(&sin);
|
||||
if (debug)
|
||||
ast_verbose("\n\nSip read: \n%s\n", req.data);
|
||||
if (pedanticsipchecking)
|
||||
req.len = lws2sws(req.data, req.len);
|
||||
parse(&req);
|
||||
if (debug)
|
||||
|
||||
Reference in New Issue
Block a user