-I guess this can happen, but should be incredibly rare (or could be provoked by...
authorChristian Grothoff <christian@grothoff.org>
Sun, 1 Jan 2012 18:54:25 +0000 (18:54 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 1 Jan 2012 18:54:25 +0000 (18:54 +0000)
src/fs/gnunet-service-fs_cp.c

index aa108c39aaff1f49a580b31204ad91cbb298277c..164e264c619bb85c6d763fc46cfa135061d05b8b 100644 (file)
@@ -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