diff --git a/http_server.c b/http_server.c index 677baf4..094865e 100644 --- a/http_server.c +++ b/http_server.c @@ -682,7 +682,7 @@ dictionary decode_cookie(const char* line) { trim(token,' '); token1 = strsep(&token,"="); - if(token1) + if(token1 && token && strlen(token) > 0) { if(dic == NULL) dic = dict();