aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/gnunet-service-rps.c')
-rw-r--r--src/rps/gnunet-service-rps.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index 243d54f7d..08d647781 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -1056,7 +1056,7 @@ add_peer_array_to_set (const struct GNUNET_PeerIdentity *peer_array,
1056{ 1056{
1057 unsigned int i; 1057 unsigned int i;
1058 if (NULL == peer_map) 1058 if (NULL == peer_map)
1059 peer_map = GNUNET_CONTAINER_multipeermap_create (num_peers, 1059 peer_map = GNUNET_CONTAINER_multipeermap_create (num_peers + 1,
1060 GNUNET_NO); 1060 GNUNET_NO);
1061 for (i = 0 ; i < num_peers ; i++) 1061 for (i = 0 ; i < num_peers ; i++)
1062 { 1062 {
@@ -1672,6 +1672,7 @@ handle_client_act_malicious (void *cls,
1672 1672
1673 1673
1674 /* Do actual logic */ 1674 /* Do actual logic */
1675 // FIXME ingore own id
1675 peers = (struct GNUNET_PeerIdentity *) &msg[1]; 1676 peers = (struct GNUNET_PeerIdentity *) &msg[1];
1676 mal_type = ntohl (in_msg->type); 1677 mal_type = ntohl (in_msg->type);
1677 1678
@@ -1721,7 +1722,7 @@ handle_client_act_malicious (void *cls,
1721 1722
1722 /* Store the one attacked peer */ 1723 /* Store the one attacked peer */
1723 memcpy (&attacked_peer, 1724 memcpy (&attacked_peer,
1724 &peers[num_mal_peers_sent], 1725 &in_msg->attacked_peer,
1725 sizeof (struct GNUNET_PeerIdentity)); 1726 sizeof (struct GNUNET_PeerIdentity));
1726 1727
1727 LOG (GNUNET_ERROR_TYPE_DEBUG, 1728 LOG (GNUNET_ERROR_TYPE_DEBUG,