gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] branch master updated: fix example


From: gnunet
Subject: [libmicrohttpd] branch master updated: fix example
Date: Wed, 29 Apr 2020 16:57:18 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new ddc770d8 fix example
ddc770d8 is described below

commit ddc770d8f6da59b3788230412c9a40490594d0f3
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Apr 29 16:52:27 2020 +0200

    fix example
---
 src/examples/http_chunked_compression.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/examples/http_chunked_compression.c 
b/src/examples/http_chunked_compression.c
index 07fd00ec..f6baf0fd 100644
--- a/src/examples/http_chunked_compression.c
+++ b/src/examples/http_chunked_compression.c
@@ -109,6 +109,7 @@ read_cb (void *cls, uint64_t pos, char *mem, size_t size)
   void *buf;
   ssize_t ret;
   size_t offset;
+
   if (pos > SSIZE_MAX)
     return MHD_CONTENT_READER_END_WITH_ERROR;
   offset = (size_t) pos;
@@ -121,7 +122,7 @@ read_cb (void *cls, uint64_t pos, char *mem, size_t size)
     ret = MHD_CONTENT_READER_END_WITH_ERROR;
     goto done;
   }
-  if (0 == size)
+  if (0 == ret)
   {
     ret = MHD_CONTENT_READER_END_OF_STREAM;
     goto done;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]