diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-06-12 11:09:50 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-06-12 11:10:01 +0200 |
commit | ae8b5cb2eac770be0d18b7d46c238bf865e34023 (patch) | |
tree | 78ecc715e15d4116390adde53b4e117f432bb599 /src/dht/gnunet-service-dht_datacache.c | |
parent | bb581dc55bfb90fc7f34797111b55d16e69b7af0 (diff) | |
download | gnunet-ae8b5cb2eac770be0d18b7d46c238bf865e34023.tar.gz gnunet-ae8b5cb2eac770be0d18b7d46c238bf865e34023.zip |
complain if datacache returns expired values
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 1f01387ff..7ad9aa728 100644 --- a/src/dht/gnunet-service-dht_datacache.c +++ b/src/dht/gnunet-service-dht_datacache.c | |||
@@ -171,6 +171,11 @@ datacache_get_iterator (void *cls, | |||
171 | struct GetRequestContext *ctx = cls; | 171 | struct GetRequestContext *ctx = cls; |
172 | enum GNUNET_BLOCK_EvaluationResult eval; | 172 | enum GNUNET_BLOCK_EvaluationResult eval; |
173 | 173 | ||
174 | if (0 == GNUNET_TIME_absolute_get_remaining (exp).rel_value_us) | ||
175 | { | ||
176 | GNUNET_break (0); /* why does datacache return expired values? */ | ||
177 | return GNUNET_OK; /* skip expired record */ | ||
178 | } | ||
174 | if ( (NULL == data) && | 179 | if ( (NULL == data) && |
175 | (0 == data_size) ) | 180 | (0 == data_size) ) |
176 | data = &non_null; /* point anywhere, but not to NULL */ | 181 | data = &non_null; /* point anywhere, but not to NULL */ |