mirror of
https://github.com/lxsang/ant-http
synced 2024-11-17 17:08:20 +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,":");
|
||||
trim(token,' ');
|
||||
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(!cookie) cookie = decode_cookie(line);
|
||||
|
Loading…
Reference in New Issue
Block a user