libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 8c6c3d4555dfb08c89332036f70c901275891b6b
parent 2220c3f77380003b173dd321811f2fe7c123c25e
Author: ng0 <ng0@n0.is>
Date:   Tue, 30 Jul 2019 14:26:24 +0000

fix behavior on NetBSD, use the right sizeof.

Diffstat:
Msrc/microhttpd/mhd_send.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c @@ -337,7 +337,7 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, #if HAVE_SENDMSG struct msghdr msg; - memset(&msg, 0, sizeof(msg)); + memset(&msg, 0, sizeof(struct msghdr)); msg.msg_iov = vector; msg.msg_iovlen = 2;