libmicrohttpd

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

commit c39070a62f9d137744d92e4f0e6c9f69b255129c
parent 003c29eb4b8171776006bc42e6e1c4a4fcbfff6c
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Mon, 13 Jun 2022 18:27:39 +0300

postprocessor.c: added assert

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

diff --git 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,