summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2015-04-07 13:58:33 +0000
committerJulius Bünger <buenger@mytum.de>2015-04-07 13:58:33 +0000
commitd36c468e34313e438f8cb5cd40559250e234bc56 (patch)
treeab7c3ede2518efcd272e2e121a2deaf1fbdb48bb
parent76880145d9f2f442108a70a09c4949a8026826dc (diff)
-fix sampler
-rw-r--r--src/rps/gnunet-service-rps_sampler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps_sampler.c b/src/rps/gnunet-service-rps_sampler.c
index 9ae85dcb6..2b4ea6007 100644
--- a/src/rps/gnunet-service-rps_sampler.c
+++ b/src/rps/gnunet-service-rps_sampler.c
@@ -436,6 +436,8 @@ RPS_sampler_elem_next (struct RPS_SamplerElement *s_elem,
GNUNET_i2s (other));
LOG (GNUNET_ERROR_TYPE_DEBUG, "Discarding old PeerID %s\n",
GNUNET_i2s (&s_elem->peer_id));
+ s_elem->peer_id = *other;
+ s_elem->peer_id_hash = other_hash;
s_elem->num_change++;
}