summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-08-16 01:33:22 +0200
committerAki <please@ignore.pl>2020-08-16 01:33:22 +0200
commit8704dabe2d6f1129787266dfab089aea23d92f15 (patch)
tree6c7d617e903a8c75e373f642b7631a85da592ee6
parent8796c9081555faf058bf1bf8979897b225fb21d5 (diff)
downloadplop-8704dabe2d6f1129787266dfab089aea23d92f15.zip
plop-8704dabe2d6f1129787266dfab089aea23d92f15.tar.gz
plop-8704dabe2d6f1129787266dfab089aea23d92f15.tar.bz2
Fixed condition in header name step
-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;
}