gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit b1ae28f03cdefc73799aadf2651b522c101c0f92
parent e95e52191b5d2ffa7b36eeb9dc4ead3209f9b523
Author: Julius Bünger <buenger@mytum.de>
Date:   Tue, 19 May 2015 22:41:33 +0000

-taking also care of type mal_type 3 in api

Diffstat:
Msrc/rps/rps_api.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 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));