From 8fc9e63f885e4cdcfeddb28336f71adcfa9f9e3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Tue, 26 Feb 2019 13:49:28 +0100 Subject: [PATCH] RPS: Fix checking of properties for peer removal --- src/rps/gnunet-service-rps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 4758478c1..8c50cf9d5 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c @@ -1796,7 +1796,7 @@ check_removable (const struct PeerContext *peer_ctx) if ( (NULL != peer_ctx->recv_channel_ctx) || (NULL != peer_ctx->pending_messages_head) || - (GNUNET_NO == check_peer_flag_set (peer_ctx, Peers_PULL_REPLY_PENDING)) ) + (GNUNET_YES == check_peer_flag_set (peer_ctx, Peers_PULL_REPLY_PENDING)) ) { return GNUNET_NO; } @@ -2758,8 +2758,8 @@ clean_peer (struct Sub *sub, (GNUNET_NO == View_contains_peer (sub->view, peer)) && (GNUNET_NO == CustomPeerMap_contains_peer (sub->push_map, peer)) && (GNUNET_NO == CustomPeerMap_contains_peer (sub->push_map, peer)) && - (0 == RPS_sampler_count_id (sub->sampler, peer)) && - (GNUNET_NO != check_removable (get_peer_ctx (sub->peer_map, peer))) ) + (0 == RPS_sampler_count_id (sub->sampler, peer)) && + (GNUNET_YES == check_removable (get_peer_ctx (sub->peer_map, peer))) ) { /* We can safely remove this peer */ LOG (GNUNET_ERROR_TYPE_DEBUG, "Going to remove peer %s\n", -- 2.25.1