diff options
Diffstat (limited to 'src/rps/test_rps_malicious_1.c')
-rw-r--r-- | src/rps/test_rps_malicious_1.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rps/test_rps_malicious_1.c b/src/rps/test_rps_malicious_1.c index 304e46973..a30607d87 100644 --- a/src/rps/test_rps_malicious_1.c +++ b/src/rps/test_rps_malicious_1.c | |||
@@ -242,8 +242,11 @@ rps_connect_adapter (void *cls, | |||
242 | h = GNUNET_RPS_connect (cfg); | 242 | h = GNUNET_RPS_connect (cfg); |
243 | 243 | ||
244 | #if ENABLE_MALICIOUS | 244 | #if ENABLE_MALICIOUS |
245 | GNUNET_assert (1 >= portion | ||
246 | && 0 < portion); | ||
247 | |||
245 | num_mal_peers = round (portion * NUM_PEERS); | 248 | num_mal_peers = round (portion * NUM_PEERS); |
246 | GNUNET_RPS_act_malicious (h, htonl (1), htonl (num_mal_peers), rps_peer_ids); | 249 | GNUNET_RPS_act_malicious (h, htonl (1), num_mal_peers, rps_peer_ids); |
247 | #endif /* ENABLE_MALICIOUS */ | 250 | #endif /* ENABLE_MALICIOUS */ |
248 | 251 | ||
249 | return h; | 252 | return h; |