diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-01 16:57:36 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-01 16:58:28 +0100 |
commit | 7c8c596991f6397ec3ca1911638acb2de721c7a7 (patch) | |
tree | 36d91539c3ce9ea38f5e6a91fa0028b3147e521d /src/dht/plugin_block_dht.c | |
parent | 70cf6979e8ee4221b20c00d59b9b30cea8c8ee32 (diff) | |
download | gnunet-7c8c596991f6397ec3ca1911638acb2de721c7a7.tar.gz gnunet-7c8c596991f6397ec3ca1911638acb2de721c7a7.zip |
use NULL as flag for evaluation of query, ensure we pass non-NULL for reply_block to evaluate reply even if reply is zero bytes long
Diffstat (limited to 'src/dht/plugin_block_dht.c')
-rw-r--r-- | src/dht/plugin_block_dht.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dht/plugin_block_dht.c b/src/dht/plugin_block_dht.c index 8bb533961..4256a0fe6 100644 --- a/src/dht/plugin_block_dht.c +++ b/src/dht/plugin_block_dht.c | |||
@@ -75,8 +75,7 @@ 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) ) | ||
80 | return GNUNET_BLOCK_EVALUATION_REQUEST_VALID; | 79 | return GNUNET_BLOCK_EVALUATION_REQUEST_VALID; |
81 | if (reply_block_size < sizeof (struct GNUNET_MessageHeader)) | 80 | if (reply_block_size < sizeof (struct GNUNET_MessageHeader)) |
82 | { | 81 | { |