From: Christian Grothoff Date: Sun, 1 Jan 2012 18:54:25 +0000 (+0000) Subject: -I guess this can happen, but should be incredibly rare (or could be provoked by... X-Git-Tag: initial-import-from-subversion-38251~15493 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0413c7690e087a0514447a87bc8118b2a244c902;p=oweals%2Fgnunet.git -I guess this can happen, but should be incredibly rare (or could be provoked by attacker); let's just count instead of break - #2055 --- 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