libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 368991b0ee6b88fffcb4fd532d8d0fad4cc35742
parent f032145edcb39e0445e4f78fec51867b9f89706c
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed, 15 Sep 2021 12:11:22 +0300

postprocessor: do not try to process value or key if state is 'error'

Diffstat:
Msrc/microhttpd/postprocessor.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c @@ -665,6 +665,12 @@ post_process_urlencoded (struct MHD_PostProcessor *pp, } } + if (PP_Error == pp->state) + { + /* State in error, returning failure */ + return MHD_NO; + } + /* save remaining data for next iteration */ if (NULL != start_key) {