Commit 09fb1ce1 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Consider extra arguments in HTTP request line invalid

parent 368fbd44
......@@ -386,6 +386,11 @@ int httpp_parse(http_parser_t *parser, const char *http_data, unsigned long len)
case 2:
version = &line[0][i];
break;
case 3:
/* There is an extra element in the request line. This is not HTTP. */
free(data);
return 0;
break;
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment