[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36412 - gnunet/src/cadet
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36412 - gnunet/src/cadet |
Date: |
Fri, 2 Oct 2015 05:37:36 +0200 |
Author: bartpolot
Date: 2015-10-02 05:37:36 +0200 (Fri, 02 Oct 2015)
New Revision: 36412
Modified:
gnunet/src/cadet/gnunet-service-cadet_connection.c
Log:
- never invalidate direct paths, show warning instead
Modified: gnunet/src/cadet/gnunet-service-cadet_connection.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_connection.c 2015-10-02 03:37:35 UTC
(rev 36411)
+++ gnunet/src/cadet/gnunet-service-cadet_connection.c 2015-10-02 03:37:36 UTC
(rev 36412)
@@ -2961,11 +2961,11 @@
unsigned int own_pos)
{
struct CadetConnection *c;
- struct CadetPeerPath *p;
+ struct CadetPeerPath *cpath;
GCC_check_connections ();
- p = path_duplicate (path);
- GNUNET_assert (NULL != p);
+ cpath = path_duplicate (path);
+ GNUNET_assert (NULL != cpath);
c = GNUNET_new (struct CadetConnection);
c->id = *cid;
GNUNET_assert (GNUNET_OK ==
@@ -2978,10 +2978,10 @@
c->bck_fc.c = c;
c->t = t;
- GNUNET_assert (own_pos <= p->length - 1);
+ GNUNET_assert (own_pos <= cpath->length - 1);
c->own_pos = own_pos;
- c->path = p;
- p->c = c;
+ c->path = cpath;
+ cpath->c = c;
if (GNUNET_OK != register_neighbors (c))
{
if (0 == own_pos)
@@ -2990,7 +2990,13 @@
* info about the paths to reach the destination. We must invalidate
* the *original* path to avoid trying it again in the next minute.
*/
- path_invalidate (path);
+ if (2 < path->length)
+ path_invalidate (path);
+ else
+ {
+ GNUNET_break (0);
+ GCT_debug(t, GNUNET_ERROR_TYPE_WARNING);
+ }
c->t = NULL;
}
path_destroy (c->path);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36412 - gnunet/src/cadet,
gnunet <=