gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 01/03: postprocessor: do not try to process value or key


From: gnunet
Subject: [libmicrohttpd] 01/03: postprocessor: do not try to process value or key if state is 'error'
Date: Wed, 15 Sep 2021 12:51:21 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

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

    postprocessor: do not try to process value or key if state is 'error'
---
 src/microhttpd/postprocessor.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c
index 334611ae..0da28141 100644
--- 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)
   {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]