libmicrohttpd

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

commit 58552e93ac47622f8ded3a4075260f56586d84a1
parent c3ac4b58deffa74cb49418518db4a5c9f02ebb85
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 30 Apr 2019 15:39:10 +0200

applying patch from Tim

Diffstat:
MAUTHORS | 1+
MChangeLog | 3+++
Msrc/examples/http_chunked_compression.c | 2+-
3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/AUTHORS b/AUTHORS @@ -62,6 +62,7 @@ Tal Moaz <tmoaz@cisco.com> Dirk Brinkmeier Jose Bollo <jobol@nonadev.net> Jonathan McDougall <jonathanmcdougall@gmail.com> +Tim Ruhsen <tim.ruehsen@gmx.de> Documentation contributions also came from: Marco Maggi <marco.maggi-ipsu@poste.it> diff --git 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 @@ -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;