gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r31232 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r31232 - gnunet/src/mesh
Date: Mon, 9 Dec 2013 18:58:42 +0100

Author: bartpolot
Date: 2013-12-09 18:58:42 +0100 (Mon, 09 Dec 2013)
New Revision: 31232

Modified:
   gnunet/src/mesh/gnunet-service-mesh_connection.c
Log:
- log condition prior to abort


Modified: gnunet/src/mesh/gnunet-service-mesh_connection.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_connection.c    2013-12-09 17:53:31 UTC 
(rev 31231)
+++ gnunet/src/mesh/gnunet-service-mesh_connection.c    2013-12-09 17:58:42 UTC 
(rev 31232)
@@ -1147,7 +1147,18 @@
 
   if (GNUNET_NO == GMP_is_neighbor (next_peer)
       || GNUNET_NO == GMP_is_neighbor (prev_peer))
+  {
+    if (GMC_is_origin (c, GNUNET_YES))
+      GNUNET_break (0);
+    else
+      GNUNET_break_op (0);
+    LOG (GNUNET_ERROR_TYPE_DEBUG, "  register neighbors failed\n");
+    LOG (GNUNET_ERROR_TYPE_DEBUG, "  prev: %s, %d\n",
+         GMP_2s (prev_peer), GMP_is_neighbor (prev_peer));
+    LOG (GNUNET_ERROR_TYPE_DEBUG, "  next: %s, %d\n",
+         GMP_2s (next_peer), GMP_is_neighbor (next_peer));
     return GNUNET_SYSERR;
+  }
 
   GMP_add_connection (next_peer, c);
   GMP_add_connection (prev_peer, c);
@@ -2210,6 +2221,7 @@
   }
   if (GNUNET_OK != register_neighbors (c))
   {
+    GNUNET_break (0);
     GMC_destroy (c);
     return NULL;
   }




reply via email to

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