mirror of https://github.com/sysown/proxysql
parent
cdfd1543a4
commit
efa90b52fa
@ -1,20 +0,0 @@
|
||||
@@ -1582,11 +1582,18 @@
|
||||
MHD_HTTP_HEADER_CONNECTION))) &&
|
||||
(MHD_str_equal_caseless_ (pos->value,
|
||||
"Keep-Alive")) ) ) )
|
||||
- off += MHD_snprintf_ (&data[off],
|
||||
+ {
|
||||
+ int n = MHD_snprintf_ (&data[off],
|
||||
size - off,
|
||||
"%s: %s\r\n",
|
||||
pos->header,
|
||||
pos->value);
|
||||
+ if (n < 0 || n >= size - off)
|
||||
+ {
|
||||
+ break;
|
||||
+ }
|
||||
+ off += n;
|
||||
+ }
|
||||
}
|
||||
if (MHD_CONNECTION_FOOTERS_RECEIVED == connection->state)
|
||||
{
|
||||
@ -1 +1 @@
|
||||
libmicrohttpd-0.9.77
|
||||
libmicrohttpd-1.0.2
|
||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue