From 0413c7690e087a0514447a87bc8118b2a244c902 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 1 Jan 2012 18:54:25 +0000 Subject: [PATCH] -I guess this can happen, but should be incredibly rare (or could be provoked by attacker); let's just count instead of break - #2055 --- src/fs/gnunet-service-fs_cp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c index aa108c39a..164e264c6 100644 --- a/src/fs/gnunet-service-fs_cp.c +++ b/src/fs/gnunet-service-fs_cp.c @@ -904,7 +904,10 @@ handle_p2p_reply (void *cls, enum GNUNET_BLOCK_EvaluationResult eval, GNUNET_break (type != GNUNET_BLOCK_TYPE_ANY); if ((prd->type != type) && (prd->type != GNUNET_BLOCK_TYPE_ANY)) { - GNUNET_break (0); + GNUNET_STATISTICS_update (GSF_stats, + gettext_noop + ("# replies dropped due to type mismatch"), + 1, GNUNET_NO); return; } #if DEBUG_FS -- 2.25.1