[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/02: Disallowed MHD_SIZE_UNKNOWN for buffer-based resp
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/02: Disallowed MHD_SIZE_UNKNOWN for buffer-based responses |
Date: |
Mon, 14 Mar 2022 19:23:22 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 470e65c68fd346d8c5367d141f049bbc018ca0fb
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Mar 14 20:39:50 2022 +0300
Disallowed MHD_SIZE_UNKNOWN for buffer-based responses
---
src/microhttpd/response.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index fbee6308..7468a232 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -1279,6 +1279,8 @@ MHD_create_response_from_data (size_t size,
if ((NULL == data) && (size > 0))
return NULL;
+ if (MHD_SIZE_UNKNOWN == size)
+ return NULL;
if (NULL == (response = MHD_calloc_ (1, sizeof (struct MHD_Response))))
return NULL;
response->fd = -1;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.