aboutsummaryrefslogtreecommitdiff
path: root/src/dht
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-15 18:41:34 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-15 18:41:34 +0100
commit16fd15965ca4a9a2986f60a7301e86ecb06eb6e3 (patch)
tree48322fab2e356f186b3f74404f6bc452fef145e0 /src/dht
parenta74ce8e7ad39f892aead93d8e25c87d139108bde (diff)
downloadgnunet-16fd15965ca4a9a2986f60a7301e86ecb06eb6e3.tar.gz
gnunet-16fd15965ca4a9a2986f60a7301e86ecb06eb6e3.zip
block size of 0 is also valid
Diffstat (limited to 'src/dht')
-rw-r--r--src/dht/plugin_block_dht.c3
1 files changed, 2 insertions, 1 deletions
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,
75 GNUNET_break_op (0); 75 GNUNET_break_op (0);
76 return GNUNET_BLOCK_EVALUATION_REQUEST_INVALID; 76 return GNUNET_BLOCK_EVALUATION_REQUEST_INVALID;
77 } 77 }
78 if (NULL == reply_block) 78 if ( (NULL == reply_block) ||
79 (0 == reply_block_size) )
79 return GNUNET_BLOCK_EVALUATION_REQUEST_VALID; 80 return GNUNET_BLOCK_EVALUATION_REQUEST_VALID;
80 if (reply_block_size < sizeof (struct GNUNET_MessageHeader)) 81 if (reply_block_size < sizeof (struct GNUNET_MessageHeader))
81 { 82 {