fix cookie read error

This commit is contained in:
Xuan Sang LE 2018-03-14 15:10:59 +01:00
parent f2a2139e5b
commit dab7e28903

View File

@ -682,7 +682,7 @@ dictionary decode_cookie(const char* line)
{ {
trim(token,' '); trim(token,' ');
token1 = strsep(&token,"="); token1 = strsep(&token,"=");
if(token1) if(token1 && token && strlen(token) > 0)
{ {
if(dic == NULL) if(dic == NULL)
dic = dict(); dic = dict();