gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: connection.c: added check to mute


From: gnunet
Subject: [libmicrohttpd] branch master updated: connection.c: added check to mute static analyzer error
Date: Mon, 16 Aug 2021 09:37:07 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 1dafa07e connection.c: added check to mute static analyzer error
1dafa07e is described below

commit 1dafa07eb3b89572311a4b2c6a8a44335a96989c
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Aug 16 10:33:31 2021 +0300

    connection.c: added check to mute static analyzer error
---
 src/microhttpd/connection.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 39ba71c0..249eb335 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1080,6 +1080,12 @@ try_ready_chunked_body (struct MHD_Connection 
*connection,
   }
   else
   {
+    if (NULL == response->crc)
+    { /* There is no way to reach this code */
+      CONNECTION_CLOSE_ERROR (connection,
+                              _ ("No callback for the chunked data."));
+      return MHD_NO;
+    }
     ret = response->crc (response->crc_cls,
                          connection->response_write_position,
                          &connection->write_buffer[max_chunk_hdr_len],

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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