mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
Disallowed MHD_SIZE_UNKNOWN for buffer-based responses
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user