mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-01 04:03:18 +03:00
fix #4911
This commit is contained in:
1 file changed
+5
-3
@@ -595,9 +595,11 @@ MHD_create_response_from_data (size_t size,
|
||||
must_free = MHD_YES;
|
||||
data = tmp;
|
||||
}
|
||||
response->crc = NULL;
|
||||
response->crfc = must_free ? &free : NULL;
|
||||
response->crc_cls = must_free ? data : NULL;
|
||||
if (must_free)
|
||||
{
|
||||
response->crfc = &free;
|
||||
response->crc_cls = data;
|
||||
}
|
||||
response->reference_count = 1;
|
||||
response->total_size = size;
|
||||
response->data = data;
|
||||
|
||||
Reference in new issue
Block a user