From b1ae28f03cdefc73799aadf2651b522c101c0f92 Mon Sep 17 00:00:00 2001 From: Julius Bünger Date: Tue, 19 May 2015 22:41:33 +0000 Subject: -taking also care of type mal_type 3 in api --- src/rps/rps_api.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/rps') diff --git a/src/rps/rps_api.c b/src/rps/rps_api.c index 16bcb9ec0..e97ba94f3 100644 --- a/src/rps/rps_api.c +++ b/src/rps/rps_api.c @@ -360,7 +360,8 @@ GNUNET_RPS_act_malicious (struct GNUNET_RPS_Handle *h, GNUNET_MESSAGE_TYPE_RPS_ACT_MALICIOUS); msg->type = htonl (type); msg->num_peers = htonl (num_peers_max); - if (2 == type) + if (2 == type + || 3 == type) msg->attacked_peer = peer_ids[num_peers]; memcpy (&msg[1], tmp_peer_pointer, @@ -380,7 +381,8 @@ GNUNET_RPS_act_malicious (struct GNUNET_RPS_Handle *h, GNUNET_MESSAGE_TYPE_RPS_ACT_MALICIOUS); msg->type = htonl (type); msg->num_peers = htonl (num_peers); - if (2 == type) + if (2 == type + || 3 == type) msg->attacked_peer = peer_ids[num_peers]; memcpy (&msg[1], tmp_peer_pointer, num_peers * sizeof (struct GNUNET_PeerIdentity)); -- cgit v1.2.3