gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: -explicitly allow ANY in GET requests


From: gnunet
Subject: [gnunet] branch master updated: -explicitly allow ANY in GET requests
Date: Thu, 27 Oct 2022 11:39:29 +0200

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

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new ee0221701 -explicitly allow ANY in GET requests
ee0221701 is described below

commit ee022170116cd20fc4983e176b62afd427791e68
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Oct 27 11:39:27 2022 +0200

    -explicitly allow ANY in GET requests
---
 src/block/block.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/block/block.c b/src/block/block.c
index 4b2d8a960..9edc7ce5e 100644
--- a/src/block/block.c
+++ b/src/block/block.c
@@ -299,9 +299,12 @@ GNUNET_BLOCK_check_query (struct GNUNET_BLOCK_Context *ctx,
                           const void *xquery,
                           size_t xquery_size)
 {
-  struct GNUNET_BLOCK_PluginFunctions *plugin = find_plugin (ctx,
-                                                             type);
+  struct GNUNET_BLOCK_PluginFunctions *plugin;
 
+  if (GNUNET_BLOCK_TYPE_ANY == type)
+    return GNUNET_SYSERR; /* no checks */
+  plugin = find_plugin (ctx,
+                        type);
   if (NULL == plugin)
     return GNUNET_SYSERR;
   return plugin->check_query (plugin->cls,

-- 
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]