gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 122/154: partial fix to sendmsg code


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 122/154: partial fix to sendmsg code
Date: Mon, 19 Aug 2019 10:17:14 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository libmicrohttpd.

commit 2220c3f77380003b173dd321811f2fe7c123c25e
Author: ng0 <address@hidden>
AuthorDate: Tue Jul 30 13:33:21 2019 +0000

    partial fix to sendmsg code
---
 src/microhttpd/mhd_send.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index dc7414c6..b2a52ba7 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -337,8 +337,11 @@ MHD_send_on_connection2_ (struct MHD_Connection 
*connection,
 
 #if HAVE_SENDMSG
   struct msghdr msg;
-  msg.msg_iov = vector;
   memset(&msg, 0, sizeof(msg));
+
+  msg.msg_iov = vector;
+  msg.msg_iovlen = 2;
+
   ret = sendmsg (s, &msg, MAYBE_MSG_NOSIGNAL);
 #elif HAVE_WRITEV
   iovcnt = sizeof (vector) / sizeof (struct iovec);

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]