commit 3c2c1d3aa9c0251c0553156a5d48d5f33936a197
parent d1d9637605c27493bf3efc9ca772aa63c650cd96
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 16 Dec 2020 17:16:19 +0300
Fixed typo
Regression from d1d9637605c27493bf3efc9ca772aa63c650cd96
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
@@ -860,7 +860,7 @@ MHD_send_hdr_and_body_ (struct MHD_Connection *connection,
#ifdef _MHD_USE_SEND_VEC
(no_vec) ||
(0 == body_size) ||
- ((size_t) SSIZE_MAX < header_size) ||
+ ((size_t) SSIZE_MAX <= header_size) ||
((size_t) _MHD_SEND_VEC_MAX < header_size)
#else /* ! _MHD_USE_SEND_VEC */
true
@@ -936,7 +936,7 @@ MHD_send_hdr_and_body_ (struct MHD_Connection *connection,
vector[1].iov_base = (void *) body;
vector[1].iov_len = body_size;
-#if define (HAVE_SENDMSG)
+#if defined(HAVE_SENDMSG)
memset (&msg, 0, sizeof(msg));
msg.msg_iov = vector;
msg.msg_iovlen = 2;