aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/gnunet-service-rps.c')
-rw-r--r--src/rps/gnunet-service-rps.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index f0393bdf0..71903709a 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -410,7 +410,7 @@ static struct GNUNET_CONTAINER_MultiPeerMap *mal_peer_set = NULL;
410/** 410/**
411 * Number of other malicious peers 411 * Number of other malicious peers
412 */ 412 */
413static uint32_t num_mal_peers = 0; 413static uint32_t num_mal_peers;
414 414
415 415
416/** 416/**
@@ -1288,6 +1288,7 @@ void client_respond (void *cls,
1288 uint32_t size_needed; 1288 uint32_t size_needed;
1289 struct ClientContext *cli_ctx; 1289 struct ClientContext *cli_ctx;
1290 1290
1291 GNUNET_assert (NULL != reply_cls);
1291 LOG (GNUNET_ERROR_TYPE_DEBUG, 1292 LOG (GNUNET_ERROR_TYPE_DEBUG,
1292 "sampler returned %" PRIu32 " peers:\n", 1293 "sampler returned %" PRIu32 " peers:\n",
1293 num_peers); 1294 num_peers);
@@ -1415,6 +1416,7 @@ handle_client_seed (void *cls,
1415 GNUNET_break_op (0); 1416 GNUNET_break_op (0);
1416 GNUNET_SERVER_receive_done (client, 1417 GNUNET_SERVER_receive_done (client,
1417 GNUNET_SYSERR); 1418 GNUNET_SYSERR);
1419 return;
1418 } 1420 }
1419 1421
1420 LOG (GNUNET_ERROR_TYPE_DEBUG, 1422 LOG (GNUNET_ERROR_TYPE_DEBUG,
@@ -1989,6 +1991,7 @@ do_mal_round (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1989 LOG (GNUNET_ERROR_TYPE_DEBUG, "Going to execute next round maliciously type %" PRIu32 ".\n", 1991 LOG (GNUNET_ERROR_TYPE_DEBUG, "Going to execute next round maliciously type %" PRIu32 ".\n",
1990 mal_type); 1992 mal_type);
1991 1993
1994 GNUNET_assert (mal_type <= 3);
1992 /* Do malicious actions */ 1995 /* Do malicious actions */
1993 if (1 == mal_type) 1996 if (1 == mal_type)
1994 { /* Try to maximise representation */ 1997 { /* Try to maximise representation */