Skip to content
Snippets Groups Projects
Commit d2c6e917 authored by dplusic's avatar dplusic
Browse files

Fix incorrect condition of the while loop in multipart_parser_execute

parent 469bce81
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ size_t multipart_parser_execute(multipart_parser* p, const char *buf, size_t len
char c, cl;
int is_last = 0;
while(!is_last) {
while(i < len) {
c = buf[i];
is_last = (i == (len - 1));
switch (p->state) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment