libmicrohttpd

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

commit 83eecbca491fa35ad8a306a583ef6886cf818234
parent b7dd720a3275302686bd38998d057fadae7fe9b2
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Wed,  8 Jul 2026 11:37:01 +0200

add NULL check

Diffstat:
Msrc/microhttpd/response.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c @@ -304,7 +304,8 @@ add_response_entry (struct MHD_Response *response, if (NULL == content) return MHD_NO; - + if (NULL == header) + return MHD_NO; header_len = strlen (header); content_len = strlen (content); return add_response_entry_n (response, kind, header,