diff options
author | Julius Bünger <buenger@mytum.de> | 2015-05-19 22:41:33 +0000 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2015-05-19 22:41:33 +0000 |
commit | b1ae28f03cdefc73799aadf2651b522c101c0f92 (patch) | |
tree | 93961c9bb6b401e873f1b259c39ca60267d2f292 /src/rps | |
parent | e95e52191b5d2ffa7b36eeb9dc4ead3209f9b523 (diff) | |
download | gnunet-b1ae28f03cdefc73799aadf2651b522c101c0f92.tar.gz gnunet-b1ae28f03cdefc73799aadf2651b522c101c0f92.zip |
-taking also care of type mal_type 3 in api
Diffstat (limited to 'src/rps')
-rw-r--r-- | src/rps/rps_api.c | 6 |
1 files changed, 4 insertions, 2 deletions
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, | |||
360 | GNUNET_MESSAGE_TYPE_RPS_ACT_MALICIOUS); | 360 | GNUNET_MESSAGE_TYPE_RPS_ACT_MALICIOUS); |
361 | msg->type = htonl (type); | 361 | msg->type = htonl (type); |
362 | msg->num_peers = htonl (num_peers_max); | 362 | msg->num_peers = htonl (num_peers_max); |
363 | if (2 == type) | 363 | if (2 == type |
364 | || 3 == type) | ||
364 | msg->attacked_peer = peer_ids[num_peers]; | 365 | msg->attacked_peer = peer_ids[num_peers]; |
365 | memcpy (&msg[1], | 366 | memcpy (&msg[1], |
366 | tmp_peer_pointer, | 367 | tmp_peer_pointer, |
@@ -380,7 +381,8 @@ GNUNET_RPS_act_malicious (struct GNUNET_RPS_Handle *h, | |||
380 | GNUNET_MESSAGE_TYPE_RPS_ACT_MALICIOUS); | 381 | GNUNET_MESSAGE_TYPE_RPS_ACT_MALICIOUS); |
381 | msg->type = htonl (type); | 382 | msg->type = htonl (type); |
382 | msg->num_peers = htonl (num_peers); | 383 | msg->num_peers = htonl (num_peers); |
383 | if (2 == type) | 384 | if (2 == type |
385 | || 3 == type) | ||
384 | msg->attacked_peer = peer_ids[num_peers]; | 386 | msg->attacked_peer = peer_ids[num_peers]; |
385 | memcpy (&msg[1], tmp_peer_pointer, num_peers * sizeof (struct GNUNET_PeerIdentity)); | 387 | memcpy (&msg[1], tmp_peer_pointer, num_peers * sizeof (struct GNUNET_PeerIdentity)); |
386 | 388 | ||