[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/09: postprocessor.c: added assert
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/09: postprocessor.c: added assert |
Date: |
Mon, 13 Jun 2022 20:28:33 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit c39070a62f9d137744d92e4f0e6c9f69b255129c
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Jun 13 18:27:39 2022 +0300
postprocessor.c: added assert
---
src/microhttpd/postprocessor.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c
index f8f4fb27..a9738906 100644
--- a/src/microhttpd/postprocessor.c
+++ b/src/microhttpd/postprocessor.c
@@ -53,6 +53,7 @@ MHD_create_post_processor (struct MHD_Connection *connection,
(NULL == connection) ||
(NULL == iter))
MHD_PANIC (_ ("libmicrohttpd API violation.\n"));
+ encoding = NULL;
if (MHD_NO == MHD_lookup_connection_value_n (connection,
MHD_HEADER_KIND,
MHD_HTTP_HEADER_CONTENT_TYPE,
@@ -61,6 +62,7 @@ MHD_create_post_processor (struct MHD_Connection *connection,
&encoding,
NULL))
return NULL;
+ mhd_assert (NULL != encoding);
boundary = NULL;
if (! MHD_str_equal_caseless_n_ (MHD_HTTP_POST_ENCODING_FORM_URLENCODED,
encoding,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (6884fa83 -> 9668d71f), gnunet, 2022/06/13
- [libmicrohttpd] 04/09: test_postprocessor{,_amp,_large}: fixed compiler warnings, fixed extra-long strings, gnunet, 2022/06/13
- [libmicrohttpd] 02/09: postprocessor.c: added assert,
gnunet <=
- [libmicrohttpd] 03/09: test_postprocessor_md: removed include of .c file, fixed extra long lines, gnunet, 2022/06/13
- [libmicrohttpd] 08/09: test_http_reasons: fixed compiler warnings, gnunet, 2022/06/13
- [libmicrohttpd] 09/09: test_start_stop: fixed compiler warnings, gnunet, 2022/06/13
- [libmicrohttpd] 05/09: test_str: minor refactoring, fixed compiler warnings, gnunet, 2022/06/13
- [libmicrohttpd] 01/09: postprocessor.h: added new internal header, gnunet, 2022/06/13
- [libmicrohttpd] 07/09: test_daemon: fixed compiler warnings, gnunet, 2022/06/13
- [libmicrohttpd] 06/09: test_str_token{,s,s_remove}: fixed compiler warnings, gnunet, 2022/06/13