mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
response.c: better handle broken situation
This commit is contained in:
@@ -273,7 +273,11 @@ add_response_header_connection (struct MHD_Response *response,
|
||||
&norm_len_s);
|
||||
mhd_assert (0 <= norm_len_s);
|
||||
if (0 > norm_len_s)
|
||||
norm_len = 0; /* Must never happen */
|
||||
{
|
||||
/* Must never happen with realistic sizes */
|
||||
free (buf);
|
||||
return MHD_NO;
|
||||
}
|
||||
else
|
||||
norm_len = (size_t) norm_len_s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user