aboutsummaryrefslogtreecommitdiff
path: root/src/block
diff options
context:
space:
mode:
Diffstat (limited to 'src/block')
-rw-r--r--src/block/block.c7
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,