diff --git a/picohttpparser.c b/picohttpparser.c index 74ccc3e..b5778f6 100644 --- a/picohttpparser.c +++ b/picohttpparser.c @@ -203,7 +203,6 @@ static const char *is_complete(const char *buf, const char *buf_end, size_t last CHECK_EOF(); if (*buf == '\015') { ++buf; - CHECK_EOF(); EXPECT_CHAR('\012'); ++ret_cnt; } else if (*buf == '\012') { @@ -217,9 +216,6 @@ static const char *is_complete(const char *buf, const char *buf_end, size_t last return buf; } } - - *ret = -2; - return NULL; } #define PARSE_INT(valp_, mul_) \