gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r35943 - gnunet/src/cadet
Date: Wed, 17 Jun 2015 11:29:08 +0200

Author: bartpolot
Date: 2015-06-17 11:29:07 +0200 (Wed, 17 Jun 2015)
New Revision: 35943

Modified:
   gnunet/src/cadet/cadet_path.c
   gnunet/src/cadet/gnunet-service-cadet_connection.c
Log:
- don't invalidate direct connections unless peer disconnects on core level

Modified: gnunet/src/cadet/cadet_path.c
===================================================================
--- gnunet/src/cadet/cadet_path.c       2015-06-17 09:29:06 UTC (rev 35942)
+++ gnunet/src/cadet/cadet_path.c       2015-06-17 09:29:07 UTC (rev 35943)
@@ -77,7 +77,7 @@
     p->length = length;
     p->peers = GNUNET_malloc (length * sizeof (GNUNET_PEER_Id));
   }
-  LOG (GNUNET_ERROR_TYPE_INFO, "New path %p (%u)\n", path, path->length);
+  LOG (GNUNET_ERROR_TYPE_INFO, "New path %p (%u)\n", p, p->length);
   return p;
 }
 

Modified: gnunet/src/cadet/gnunet-service-cadet_connection.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_connection.c  2015-06-17 09:29:06 UTC 
(rev 35942)
+++ gnunet/src/cadet/gnunet-service-cadet_connection.c  2015-06-17 09:29:07 UTC 
(rev 35943)
@@ -2061,7 +2061,8 @@
       return GNUNET_OK;
     }
     endpoint = GCP_get_short (c->path->peers[c->path->length - 1]);
-    path_invalidate (c->path);
+    if (2 < c->path->length)
+      path_invalidate (c->path);
     GCP_notify_broken_link (endpoint, &msg->peer1, &msg->peer2);
 
     c->state = CADET_CONNECTION_BROKEN;




reply via email to

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