projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a74ce8e
)
block size of 0 is also valid
author
Christian Grothoff
<christian@grothoff.org>
Sun, 15 Jan 2017 17:41:34 +0000
(18:41 +0100)
committer
Christian Grothoff
<christian@grothoff.org>
Sun, 15 Jan 2017 17:41:34 +0000
(18:41 +0100)
src/dht/plugin_block_dht.c
patch
|
blob
|
history
diff --git
a/src/dht/plugin_block_dht.c
b/src/dht/plugin_block_dht.c
index 4256a0fe64464bcd0bb0d7fb286d564558469527..8bb53396166a36db6a0aebe770f1e91c282e757e 100644
(file)
--- 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))
{