diff options
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1702,6 +1702,8 @@ evhttp_parse_request_line(struct evhttp_request *req, char *line, size_t len) --eos; --len; } + if (len < strlen("GET / HTTP/1.0")) + return -1; /* Parse the request line */ method = strsep(&line, " "); |