mirror of
https://github.com/lxsang/ant-http
synced 2025-02-24 00:52:48 +01:00
fix invalid read
This commit is contained in:
parent
64b27c0dd3
commit
5b8850550f
@ -518,7 +518,8 @@ dictionary decode_request(void* client,const char* method, char* url)
|
|||||||
token = strsep(&line,":");
|
token = strsep(&line,":");
|
||||||
trim(token,' ');
|
trim(token,' ');
|
||||||
trim(line,' ');
|
trim(line,' ');
|
||||||
dput(xheader,token,strdup(line));
|
if(token && line && strlen(line) > 0)
|
||||||
|
dput(xheader,token,strdup(line));
|
||||||
if(token != NULL &&strcasecmp(token,"Cookie") == 0)
|
if(token != NULL &&strcasecmp(token,"Cookie") == 0)
|
||||||
{
|
{
|
||||||
if(!cookie) cookie = decode_cookie(line);
|
if(!cookie) cookie = decode_cookie(line);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user