commit ee022170116cd20fc4983e176b62afd427791e68
parent aac2f0a6255f90ff45fdc710ccbbd2e92b0bf528
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 27 Oct 2022 11:39:27 +0200
-explicitly allow ANY in GET requests
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git 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,