[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: fix crash if block plugin n
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: fix crash if block plugin not found |
Date: |
Sun, 25 Jun 2017 00:42:42 +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 e15ee8365 fix crash if block plugin not found
e15ee8365 is described below
commit e15ee8365a5eb40aaf2448c4f649af30297d6817
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Jun 25 00:42:25 2017 +0200
fix crash if block plugin not found
---
src/block/block.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/block/block.c b/src/block/block.c
index 4b6f3826d..bbf45477c 100644
--- a/src/block/block.c
+++ b/src/block/block.c
@@ -151,10 +151,9 @@ GNUNET_BLOCK_context_create (const struct
GNUNET_CONFIGURATION_Handle *cfg)
void
GNUNET_BLOCK_context_destroy (struct GNUNET_BLOCK_Context *ctx)
{
- unsigned int i;
struct Plugin *plugin;
- for (i = 0; i < ctx->num_plugins; i++)
+ for (unsigned int i = 0; i < ctx->num_plugins; i++)
{
plugin = ctx->plugins[i];
GNUNET_break (NULL ==
@@ -301,6 +300,8 @@ GNUNET_BLOCK_group_create (struct GNUNET_BLOCK_Context *ctx,
plugin = find_plugin (ctx,
type);
+ if (NULL == plugin)
+ return NULL;
if (NULL == plugin->create_group)
return NULL;
va_start (ap,
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: fix crash if block plugin not found,
gnunet <=