gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: block size of 0 is also val


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: block size of 0 is also valid
Date: Sun, 15 Jan 2017 18:41:36 +0100

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 16fd15965 block size of 0 is also valid
16fd15965 is described below

commit 16fd15965ca4a9a2986f60a7301e86ecb06eb6e3
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Jan 15 18:41:34 2017 +0100

    block size of 0 is also valid
---
 src/dht/plugin_block_dht.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/dht/plugin_block_dht.c b/src/dht/plugin_block_dht.c
index 4256a0fe6..8bb533961 100644
--- a/src/dht/plugin_block_dht.c
+++ b/src/dht/plugin_block_dht.c
@@ -75,7 +75,8 @@ block_plugin_dht_evaluate (void *cls,
     GNUNET_break_op (0);
     return GNUNET_BLOCK_EVALUATION_REQUEST_INVALID;
   }
-  if (NULL == reply_block)
+  if ( (NULL == reply_block) ||
+       (0 == reply_block_size) )
     return GNUNET_BLOCK_EVALUATION_REQUEST_VALID;
   if (reply_block_size < sizeof (struct GNUNET_MessageHeader))
   {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]