From 16fd15965ca4a9a2986f60a7301e86ecb06eb6e3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 15 Jan 2017 18:41:34 +0100 Subject: [PATCH] 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)) { -- 2.25.1