mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 19:08:14 +00:00
Committed a little bit too quickly there...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1934,7 +1934,7 @@ static int sip_register(char *value, int lineno)
|
|||||||
static void parse(struct sip_request *req)
|
static void parse(struct sip_request *req)
|
||||||
{
|
{
|
||||||
/* Divide fields by NULL's */
|
/* Divide fields by NULL's */
|
||||||
char *c, *last = NULL;
|
char *c;
|
||||||
int f = 0;
|
int f = 0;
|
||||||
c = req->data;
|
c = req->data;
|
||||||
|
|
||||||
@@ -1958,10 +1958,7 @@ static void parse(struct sip_request *req)
|
|||||||
} else {
|
} else {
|
||||||
if ((c[1] == ' ') || (c[1] == '\t')) {
|
if ((c[1] == ' ') || (c[1] == '\t')) {
|
||||||
/* Continuation of previous header */
|
/* Continuation of previous header */
|
||||||
if (last) {
|
*c = ' ';
|
||||||
while(last < c)
|
|
||||||
*(last++) = ' ';
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
f++;
|
f++;
|
||||||
req->header[f] = c + 1;
|
req->header[f] = c + 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user