gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: fix rung prev injection


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: fix rung prev injection
Date: Tue, 31 Jan 2017 17:04:51 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 97bdf0c31 fix rung prev injection
97bdf0c31 is described below

commit 97bdf0c31a61610cc4f4b2d6d2e3f30a2abb5ce0
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Jan 31 17:04:56 2017 +0100

    fix rung prev injection
---
 src/cadet/gnunet-service-cadet-new_core.c  | 4 ++--
 src/cadet/gnunet-service-cadet-new_paths.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/cadet/gnunet-service-cadet-new_core.c 
b/src/cadet/gnunet-service-cadet-new_core.c
index 9b2f1a6fb..bb33dac40 100644
--- a/src/cadet/gnunet-service-cadet-new_core.c
+++ b/src/cadet/gnunet-service-cadet-new_core.c
@@ -275,8 +275,8 @@ lower_rung (struct RouteDirection *dir)
     prev->rung_off = rung->rung_off - 1;
     GNUNET_CONTAINER_DLL_insert_after (rung_head,
                                        rung_tail,
-                                       prev,
-                                       rung);
+                                       rung->prev,
+                                       prev);
   }
   else
   {
diff --git a/src/cadet/gnunet-service-cadet-new_paths.c 
b/src/cadet/gnunet-service-cadet-new_paths.c
index 39026dbe7..e2d8da687 100644
--- a/src/cadet/gnunet-service-cadet-new_paths.c
+++ b/src/cadet/gnunet-service-cadet-new_paths.c
@@ -494,7 +494,7 @@ GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity 
*get_path,
     /* Check that no peer is twice on the path */
     for (unsigned int i=0;i<off - skip;i++)
     {
-      if (cpath[i] == cpath[off - skip])
+     if (cpath[i] == cpath[off - skip])
       {
         skip = off - i;
         break;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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