partial fix to sendmsg code

This commit is contained in:
ng0
2019-07-30 13:33:21 +00:00
parent 919c6d4e52
commit 2220c3f773
+4 -1
View File
@@ -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);