diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-10-27 11:39:27 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-10-27 11:39:27 +0200 |
commit | ee022170116cd20fc4983e176b62afd427791e68 (patch) | |
tree | ec4e27ebb6e4776cd8863a4127b0111e6e59bc49 /src/block | |
parent | aac2f0a6255f90ff45fdc710ccbbd2e92b0bf528 (diff) | |
download | gnunet-ee022170116cd20fc4983e176b62afd427791e68.tar.gz gnunet-ee022170116cd20fc4983e176b62afd427791e68.zip |
-explicitly allow ANY in GET requests
Diffstat (limited to 'src/block')
-rw-r--r-- | src/block/block.c | 7 |
1 files 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, | |||
299 | const void *xquery, | 299 | const void *xquery, |
300 | size_t xquery_size) | 300 | size_t xquery_size) |
301 | { | 301 | { |
302 | struct GNUNET_BLOCK_PluginFunctions *plugin = find_plugin (ctx, | 302 | struct GNUNET_BLOCK_PluginFunctions *plugin; |
303 | type); | ||
304 | 303 | ||
304 | if (GNUNET_BLOCK_TYPE_ANY == type) | ||
305 | return GNUNET_SYSERR; /* no checks */ | ||
306 | plugin = find_plugin (ctx, | ||
307 | type); | ||
305 | if (NULL == plugin) | 308 | if (NULL == plugin) |
306 | return GNUNET_SYSERR; | 309 | return GNUNET_SYSERR; |
307 | return plugin->check_query (plugin->cls, | 310 | return plugin->check_query (plugin->cls, |