[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35751 - gnunet/src/rps
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35751 - gnunet/src/rps |
Date: |
Wed, 20 May 2015 00:41:34 +0200 |
Author: ch3
Date: 2015-05-20 00:41:33 +0200 (Wed, 20 May 2015)
New Revision: 35751
Modified:
gnunet/src/rps/rps_api.c
Log:
-taking also care of type mal_type 3 in api
Modified: gnunet/src/rps/rps_api.c
===================================================================
--- gnunet/src/rps/rps_api.c 2015-05-19 22:41:31 UTC (rev 35750)
+++ gnunet/src/rps/rps_api.c 2015-05-19 22:41:33 UTC (rev 35751)
@@ -360,7 +360,8 @@
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_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));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35751 - gnunet/src/rps,
gnunet <=