gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 01/02: use bit-test as we do in MHD_get_con


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 01/02: use bit-test as we do in MHD_get_connection_values()
Date: Thu, 24 Oct 2019 17:56:40 +0200

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

grothoff pushed a commit to branch master
in repository libmicrohttpd.

commit 13d3805dc696c2b72826ba862ed1347f17634510
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Oct 24 17:48:14 2019 +0200

    use bit-test as we do in MHD_get_connection_values()
---
 src/microhttpd/connection.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 11c7099a..1dbbbd82 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -350,12 +350,12 @@ MHD_get_connection_values_n (struct MHD_Connection 
*connection,
   if (NULL == iterator)
     for (pos = connection->headers_received; NULL != pos; pos = pos->next)
     {
-      if (kind == pos->kind)
+      if (0 != (kind & pos->kind))
         ret++;
     }
   else
     for (pos = connection->headers_received; NULL != pos; pos = pos->next)
-      if (kind == pos->kind)
+      if (0 != (kind & pos->kind))
       {
         ret++;
         if (MHD_NO == iterator (iterator_cls,

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



reply via email to

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