From 8704dabe2d6f1129787266dfab089aea23d92f15 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 16 Aug 2020 01:33:22 +0200 Subject: Fixed condition in header name step --- request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request.c b/request.c index 15034ee..11f734b 100644 --- a/request.c +++ b/request.c @@ -245,7 +245,7 @@ int parse_step_header_name(struct request * request) lua_newtable(request->lua); } - if (request->position + 4 >= request->length) + if (request->length - request->position < 4) { return 0; } -- cgit v1.1