diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-01 18:54:25 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-01 18:54:25 +0000 |
commit | 0413c7690e087a0514447a87bc8118b2a244c902 (patch) | |
tree | 97d50f832f5f2c1398b0f1ae2fcb3e38cc5acb89 | |
parent | b397c3e1dd31e76a4530d47a743ccc7c3a637446 (diff) | |
download | gnunet-0413c7690e087a0514447a87bc8118b2a244c902.tar.gz gnunet-0413c7690e087a0514447a87bc8118b2a244c902.zip |
-I guess this can happen, but should be incredibly rare (or could be provoked by attacker); let's just count instead of break - #2055
-rw-r--r-- | src/fs/gnunet-service-fs_cp.c | 5 |
1 files changed, 4 insertions, 1 deletions
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, | |||
904 | GNUNET_break (type != GNUNET_BLOCK_TYPE_ANY); | 904 | GNUNET_break (type != GNUNET_BLOCK_TYPE_ANY); |
905 | if ((prd->type != type) && (prd->type != GNUNET_BLOCK_TYPE_ANY)) | 905 | if ((prd->type != type) && (prd->type != GNUNET_BLOCK_TYPE_ANY)) |
906 | { | 906 | { |
907 | GNUNET_break (0); | 907 | GNUNET_STATISTICS_update (GSF_stats, |
908 | gettext_noop | ||
909 | ("# replies dropped due to type mismatch"), | ||
910 | 1, GNUNET_NO); | ||
908 | return; | 911 | return; |
909 | } | 912 | } |
910 | #if DEBUG_FS | 913 | #if DEBUG_FS |