Prevent crash in net_http.c function

This commit is contained in:
twinaphex 2015-03-21 22:10:13 +01:00
parent 0087801ea7
commit 64a866af84

View File

@ -200,6 +200,8 @@ error:
bool net_http_connection_iterate(struct http_connection_t *conn)
{
if (!conn)
return false;
if (*conn->scan != '/' && *conn->scan != ':' && *conn->scan != '\0')
{
conn->scan++;