From: Christian Grothoff Date: Tue, 31 Jan 2017 16:04:56 +0000 (+0100) Subject: fix rung prev injection X-Git-Tag: taler-0.2.1~215 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=97bdf0c31a61610cc4f4b2d6d2e3f30a2abb5ce0;p=oweals%2Fgnunet.git fix rung prev injection --- 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