Fixed bug in cookie handling

SVN revision: 2179
This commit is contained in:
Stefan Ritt 2009-03-04 15:40:13 +00:00
parent e759939aaf
commit f529456e7d

View File

@ -26681,6 +26681,8 @@ int process_http_request(const char *request, int i_conn)
for (i = 0; *p && *p != ';' && *p != '\r' && *p != '\n' ; )
if (i < (int) sizeof(cookie)-1)
cookie[i++] = *p++;
else
break;
cookie[i] = 0;
} else {
/* empty cookie */