aboutsummaryrefslogtreecommitdiff
path: root/src/dht
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht')
-rw-r--r--src/dht/gnunet-service-dht_datacache.c5
-rw-r--r--src/dht/plugin_block_dht.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/src/dht/gnunet-service-dht_datacache.c b/src/dht/gnunet-service-dht_datacache.c
index 9b4dace67..74fa1cc29 100644
--- a/src/dht/gnunet-service-dht_datacache.c
+++ b/src/dht/gnunet-service-dht_datacache.c
@@ -170,9 +170,14 @@ datacache_get_iterator (void *cls,
170 unsigned int put_path_length, 170 unsigned int put_path_length,
171 const struct GNUNET_PeerIdentity *put_path) 171 const struct GNUNET_PeerIdentity *put_path)
172{ 172{
173 static char non_null;
173 struct GetRequestContext *ctx = cls; 174 struct GetRequestContext *ctx = cls;
174 enum GNUNET_BLOCK_EvaluationResult eval; 175 enum GNUNET_BLOCK_EvaluationResult eval;
175 176
177 if ( (NULL == data) &&
178 (0 == data_size) )
179 data = &non_null; /* point anywhere, but not to NULL */
180
176 eval 181 eval
177 = GNUNET_BLOCK_evaluate (GDS_block_context, 182 = GNUNET_BLOCK_evaluate (GDS_block_context,
178 type, 183 type,
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 {