aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2015-07-22 09:37:18 +0000
committerJulius Bünger <buenger@mytum.de>2015-07-22 09:37:18 +0000
commit15a1f81b91b94b2272b3dcf841f630e170676c46 (patch)
tree556d2c3bc3fad7f678cca417f58c01d9ed607af7 /src
parent9922e0b428d9b3f5b667a7028d4ac24bf71eb3d2 (diff)
downloadgnunet-15a1f81b91b94b2272b3dcf841f630e170676c46.tar.gz
gnunet-15a1f81b91b94b2272b3dcf841f630e170676c46.zip
-fixed wrong check
Diffstat (limited to 'src')
-rw-r--r--src/rps/gnunet-service-rps.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index 7a5bf56bf..d60029f3b 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -1722,9 +1722,7 @@ handle_peer_pull_reply (void *cls,
1722 &peers[i])) 1722 &peers[i]))
1723 { 1723 {
1724 peer_ctx = get_peer_ctx (peer_map, &peers[i]); 1724 peer_ctx = get_peer_ctx (peer_map, &peers[i]);
1725 if (GNUNET_YES == get_peer_flag (peer_ctx, VALID) || 1725 if (GNUNET_YES == get_peer_flag (peer_ctx, VALID))
1726 NULL != peer_ctx->send_channel ||
1727 NULL != peer_ctx->recv_channel)
1728 { 1726 {
1729 if (GNUNET_NO == in_arr (pull_list, pull_list_size, &peers[i])) 1727 if (GNUNET_NO == in_arr (pull_list, pull_list_size, &peers[i]))
1730 GNUNET_array_append (pull_list, pull_list_size, peers[i]); 1728 GNUNET_array_append (pull_list, pull_list_size, peers[i]);
@@ -2034,9 +2032,7 @@ do_mal_round (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
2034 2032
2035 /* Send PUSH to attacked peers */ 2033 /* Send PUSH to attacked peers */
2036 peer_ctx = get_peer_ctx (peer_map, &attacked_peer); 2034 peer_ctx = get_peer_ctx (peer_map, &attacked_peer);
2037 if (GNUNET_YES == get_peer_flag (peer_ctx, VALID) 2035 if (GNUNET_YES == get_peer_flag (peer_ctx, VALID))
2038 || NULL != peer_ctx->send_channel
2039 || NULL != peer_ctx->recv_channel)
2040 { 2036 {
2041 LOG (GNUNET_ERROR_TYPE_DEBUG, 2037 LOG (GNUNET_ERROR_TYPE_DEBUG,
2042 "Goding to send push to attacked peer (%s)\n", 2038 "Goding to send push to attacked peer (%s)\n",