aboutsummaryrefslogtreecommitdiff
path: root/src/rps
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2015-08-04 12:34:37 +0000
committerJulius Bünger <buenger@mytum.de>2015-08-04 12:34:37 +0000
commitda9bcb5ad48d9668e59fdf47ff4a12f6dafa7d7e (patch)
tree878b6c1493194a47269d1be574ff0c5b75576fa7 /src/rps
parent044454cd9bf77d99d8ed96fa28ac178ac9c32b34 (diff)
downloadgnunet-da9bcb5ad48d9668e59fdf47ff4a12f6dafa7d7e.tar.gz
gnunet-da9bcb5ad48d9668e59fdf47ff4a12f6dafa7d7e.zip
-fix (create peermap), logging
Diffstat (limited to 'src/rps')
-rw-r--r--src/rps/gnunet-service-rps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index befe6926d..242ee5a4c 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -1133,7 +1133,7 @@ add_peer_array_to_set (const struct GNUNET_PeerIdentity *peer_array,
1133 if (NULL == peer_map) 1133 if (NULL == peer_map)
1134 { 1134 {
1135 LOG (GNUNET_ERROR_TYPE_WARNING, 1135 LOG (GNUNET_ERROR_TYPE_WARNING,
1136 "Trying to add peers to an empty peermap.\n"); 1136 "Trying to add peers to non-existing peermap.\n");
1137 return; 1137 return;
1138 } 1138 }
1139 1139
@@ -1567,8 +1567,6 @@ handle_peer_push (void *cls,
1567 { /* Try to maximise representation */ 1567 { /* Try to maximise representation */
1568 if (NULL == att_peer_set) 1568 if (NULL == att_peer_set)
1569 att_peer_set = GNUNET_CONTAINER_multipeermap_create (1, GNUNET_NO); 1569 att_peer_set = GNUNET_CONTAINER_multipeermap_create (1, GNUNET_NO);
1570 if (NULL == mal_peer_set)
1571 mal_peer_set = GNUNET_CONTAINER_multipeermap_create (1, GNUNET_NO);
1572 if (GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (att_peer_set, 1570 if (GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (att_peer_set,
1573 peer)) 1571 peer))
1574 { 1572 {
@@ -1995,6 +1993,8 @@ handle_client_act_malicious (void *cls,
1995 /* Do actual logic */ 1993 /* Do actual logic */
1996 peers = (struct GNUNET_PeerIdentity *) &msg[1]; 1994 peers = (struct GNUNET_PeerIdentity *) &msg[1];
1997 mal_type = ntohl (in_msg->type); 1995 mal_type = ntohl (in_msg->type);
1996 if (NULL == mal_peer_set)
1997 mal_peer_set = GNUNET_CONTAINER_multipeermap_create (1, GNUNET_NO);
1998 1998
1999 LOG (GNUNET_ERROR_TYPE_DEBUG, 1999 LOG (GNUNET_ERROR_TYPE_DEBUG,
2000 "Now acting malicious type %" PRIu32 ", got %" PRIu32 " peers.\n", 2000 "Now acting malicious type %" PRIu32 ", got %" PRIu32 " peers.\n",