gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r35984 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r35984 - gnunet/src/cadet
Date: Thu, 25 Jun 2015 05:16:52 +0200

Author: bartpolot
Date: 2015-06-25 05:16:52 +0200 (Thu, 25 Jun 2015)
New Revision: 35984

Modified:
   gnunet/src/cadet/gnunet-service-cadet_connection.c
Log:
- documentation, statistics about failures

Modified: gnunet/src/cadet/gnunet-service-cadet_connection.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_connection.c  2015-06-25 03:16:51 UTC 
(rev 35983)
+++ gnunet/src/cadet/gnunet-service-cadet_connection.c  2015-06-25 03:16:52 UTC 
(rev 35984)
@@ -1800,10 +1800,17 @@
     path = path_build_from_peer_ids ((struct GNUNET_PeerIdentity *) &msg[1],
                                      size, myid, &own_pos);
     if (NULL == path)
+    {
+      /* Path was malformed, probably our own ID was not in it. */
+      GNUNET_STATISTICS_update (stats, "# malformed paths", 1, GNUNET_NO);
+      GNUNET_break_op (0);
       return GNUNET_OK;
+    }
 
     if (0 == own_pos)
     {
+      /* We received this request from a neighbor, we cannot be origin */
+      GNUNET_STATISTICS_update (stats, "# fake paths", 1, GNUNET_NO);
       GNUNET_break_op (0);
       path_destroy (path);
       return GNUNET_OK;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]