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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 246e6c96..11de6a19 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -235,7 +235,6 @@ pre_send_setopt (struct MHD_Connection *connection,
235 bool plain_send, 235 bool plain_send,
236 bool push_data) 236 bool push_data)
237{ 237{
238 int ret;
239 /* Try to buffer data if not sending the final piece. 238 /* Try to buffer data if not sending the final piece.
240 * Final piece is indicated by push_data == true. */ 239 * Final piece is indicated by push_data == true. */
241 const bool buffer_data = (! push_data); 240 const bool buffer_data = (! push_data);
@@ -495,7 +494,6 @@ post_send_setopt (struct MHD_Connection *connection,
495 bool plain_send_next, 494 bool plain_send_next,
496 bool push_data) 495 bool push_data)
497{ 496{
498 int ret;
499 /* Try to buffer data if not sending the final piece. 497 /* Try to buffer data if not sending the final piece.
500 * Final piece is indicated by push_data == true. */ 498 * Final piece is indicated by push_data == true. */
501 const bool buffer_data = (! push_data); 499 const bool buffer_data = (! push_data);
@@ -855,7 +853,8 @@ MHD_send_hdr_and_body_ (struct MHD_Connection *connection,
855 header, 853 header,
856 header_size, 854 header_size,
857 push_hdr); 855 push_hdr);
858 if ( ((size_t) header_size == ret) && 856
857 if ( (header_size == (size_t) ret) &&
859 (((size_t) SSIZE_MAX > header_size)) && 858 (((size_t) SSIZE_MAX > header_size)) &&
860 (0 != body_size) ) 859 (0 != body_size) )
861 { 860 {