summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++;
}