From 83eecbca491fa35ad8a306a583ef6886cf818234 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 8 Jul 2026 11:37:01 +0200 Subject: [PATCH] add NULL check --- src/microhttpd/response.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index 7eaf305d..70e2fd27 100644 --- 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,