diff --git a/http_parser.c b/http_parser.c index 5a0972a7..122ede1a 100644 --- a/http_parser.c +++ b/http_parser.c @@ -1384,6 +1384,7 @@ size_t http_parser_execute (http_parser *parser, break; default: + parser->state = state; return p - data; /* Error */ } }