summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--request.c2
1 files changed, 1 insertions, 1 deletions
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;
}