summaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps_sampler.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2015-07-24 09:49:14 +0000
committerJulius Bünger <buenger@mytum.de>2015-07-24 09:49:14 +0000
commitdf162be1f27b67bef2d1e31a528c21741bfa7eb1 (patch)
treed233926ad25ea8e1162e5b722c13bf08edd11273 /src/rps/gnunet-service-rps_sampler.c
parent1d8ceb83e447e32450597d98dfa3fea638b59cf5 (diff)
-fixed emptiness check
Diffstat (limited to 'src/rps/gnunet-service-rps_sampler.c')
-rw-r--r--src/rps/gnunet-service-rps_sampler.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rps/gnunet-service-rps_sampler.c b/src/rps/gnunet-service-rps_sampler.c
index f1b8f32cf..be67482fb 100644
--- a/src/rps/gnunet-service-rps_sampler.c
+++ b/src/rps/gnunet-service-rps_sampler.c
@@ -596,8 +596,9 @@ sampler_mod_get_rand_peer (void *cls,
s_elem = gpc->sampler->sampler_elements[client_get_index];
*gpc->id = s_elem->peer_id;
+ GNUNET_assert (NULL == s_elem);
- if (NULL == s_elem)
+ if (EMPTY == s_elem->is_empty)
{
LOG (GNUNET_ERROR_TYPE_DEBUG, "Sampler_mod element empty, rescheduling.\n");
GNUNET_assert (NULL == gpc->get_peer_task);