From 97bdf0c31a61610cc4f4b2d6d2e3f30a2abb5ce0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 31 Jan 2017 17:04:56 +0100 Subject: [PATCH] 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