From 58552e93ac47622f8ded3a4075260f56586d84a1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 30 Apr 2019 15:39:10 +0200 Subject: [PATCH] applying patch from Tim --- AUTHORS | 1 + ChangeLog | 3 +++ src/examples/http_chunked_compression.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index ac48e692..2180cbc9 100644 --- a/AUTHORS +++ b/AUTHORS @@ -62,6 +62,7 @@ Tal Moaz Dirk Brinkmeier Jose Bollo Jonathan McDougall +Tim Ruhsen Documentation contributions also came from: Marco Maggi diff --git a/ChangeLog b/ChangeLog index 690232ee..4764256c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +Mon 29 Apr 2019 01:26:39 AM BRT + Fixed signed/unsigned comparison in example http_chunked_compression.c. -SC/TR + Mon 15 Apr 2019 05:33:52 PM CEST Add MHD_USE_POST_HANDSHAKE_AUTH_SUPPORT and MHD_USE_INSECURE_TLS_EARLY_DATA flags. -CG diff --git a/src/examples/http_chunked_compression.c b/src/examples/http_chunked_compression.c index 9e49c131..7f4a1333 100644 --- a/src/examples/http_chunked_compression.c +++ b/src/examples/http_chunked_compression.c @@ -92,7 +92,7 @@ read_cb (void *cls, uint64_t pos, char *mem, size_t size) if (NULL == src) return MHD_CONTENT_READER_END_WITH_ERROR; size = fread (src, 1, size, holder->file); - if (size < 0) + if ((ssize_t) size < 0) { size = MHD_CONTENT_READER_END_WITH_ERROR; goto done;