diff options
Diffstat (limited to 'src/rps/gnunet-service-rps.c')
-rw-r--r-- | src/rps/gnunet-service-rps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 1871ef006..f6fe17589 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c | |||
@@ -2161,7 +2161,7 @@ rem_from_list (struct GNUNET_PeerIdentity **peer_list, | |||
2161 | 2161 | ||
2162 | for ( i = 0 ; i < *list_size ; i++ ) | 2162 | for ( i = 0 ; i < *list_size ; i++ ) |
2163 | { | 2163 | { |
2164 | if (0 == GNUNET_CRYPTO_cmp_peer_identity (&tmp[i], peer)) | 2164 | if (0 == GNUNET_memcmp (&tmp[i], peer)) |
2165 | { | 2165 | { |
2166 | if (i < *list_size -1) | 2166 | if (i < *list_size -1) |
2167 | { /* Not at the last entry -- shift peers left */ | 2167 | { /* Not at the last entry -- shift peers left */ |
@@ -2742,7 +2742,7 @@ clean_peer (struct Sub *sub, | |||
2742 | "Going to remove send channel to peer %s\n", | 2742 | "Going to remove send channel to peer %s\n", |
2743 | GNUNET_i2s (peer)); | 2743 | GNUNET_i2s (peer)); |
2744 | #if ENABLE_MALICIOUS | 2744 | #if ENABLE_MALICIOUS |
2745 | if (0 != GNUNET_CRYPTO_cmp_peer_identity (&attacked_peer, | 2745 | if (0 != GNUNET_memcmp (&attacked_peer, |
2746 | peer)) | 2746 | peer)) |
2747 | (void) destroy_sending_channel (get_peer_ctx (sub->peer_map, | 2747 | (void) destroy_sending_channel (get_peer_ctx (sub->peer_map, |
2748 | peer)); | 2748 | peer)); |
@@ -3596,7 +3596,7 @@ handle_peer_pull_request (void *cls, | |||
3596 | 3596 | ||
3597 | else if (2 == mal_type) | 3597 | else if (2 == mal_type) |
3598 | { /* Try to partition network */ | 3598 | { /* Try to partition network */ |
3599 | if (0 == GNUNET_CRYPTO_cmp_peer_identity (&attacked_peer, peer)) | 3599 | if (0 == GNUNET_memcmp (&attacked_peer, peer)) |
3600 | { | 3600 | { |
3601 | send_pull_reply (peer_ctx, mal_peers, num_mal_peers); | 3601 | send_pull_reply (peer_ctx, mal_peers, num_mal_peers); |
3602 | } | 3602 | } |