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/gnunet-service-dht_datacache.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/gnunet-service-dht_datacache.c')
-rw-r--r-- | src/dht/gnunet-service-dht_datacache.c | 5 |
1 files changed, 5 insertions, 0 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, |