aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_send.c')
-rw-r--r--src/microhttpd/mhd_send.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index f3028293..f691cc7d 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -1291,6 +1291,10 @@ send_iov_nontls (struct MHD_Connection *connection,
1291 pre_send_setopt (connection, true, push_data); 1291 pre_send_setopt (connection, true, push_data);
1292 1292
1293 items_to_send = r_iov->cnt - r_iov->sent; 1293 items_to_send = r_iov->cnt - r_iov->sent;
1294#ifdef IOV_MAX
1295 if (IOV_MAX < items_to_send)
1296 items_to_send = IOV_MAX;
1297#endif /* IOV_MAX */
1294#ifdef HAVE_SENDMSG 1298#ifdef HAVE_SENDMSG
1295 memset (&msg, 0, sizeof(struct msghdr)); 1299 memset (&msg, 0, sizeof(struct msghdr));
1296 msg.msg_iov = r_iov->iov + r_iov->sent; 1300 msg.msg_iov = r_iov->iov + r_iov->sent;