commit a019057377ee1b67d49264d1029ac615089b2422
parent 79748e574ebe30e2d844b0c9335f7a2da08120c0
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 10 Jun 2020 21:45:23 +0200
fix PP bug discovered by MD
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,7 @@
+Wed 10 Jun 2020 09:44:29 PM CEST
+ Fixed PostProcessor bug discovered by MD, which given certain parser
+ boundaries caused the returned values to be wrong. -CG/MD
+
Wed 08 Apr 2020 10:53:01 PM CEST
Introduce `enum MHD_Result` for #MHD_YES/#MHD_NO to avoid using 'int' so much.
Note that this change WILL cause compiler warnings until (most) MHD callbacks
diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c
@@ -541,6 +541,7 @@ post_process_urlencoded (struct MHD_PostProcessor *pp,
pp->buffer_pos = 0;
pp->value_offset = 0;
pp->state = PP_Init;
+ start_value = NULL;
}
continue;
case '\n':