From: Christian Grothoff Date: Sun, 15 Jan 2017 17:41:34 +0000 (+0100) Subject: block size of 0 is also valid X-Git-Tag: taler-0.2.1~448 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=16fd15965ca4a9a2986f60a7301e86ecb06eb6e3;p=oweals%2Fgnunet.git block size of 0 is also valid --- 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)) {