From 57fcfd85d203f7bc1cf7d5abaa50bed5590edc2f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 31 Jan 2017 13:56:21 +0100 Subject: [PATCH] init rung field --- src/cadet/gnunet-service-cadet-new_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cadet/gnunet-service-cadet-new_core.c b/src/cadet/gnunet-service-cadet-new_core.c index 2c050af6d..24b58982d 100644 --- a/src/cadet/gnunet-service-cadet-new_core.c +++ b/src/cadet/gnunet-service-cadet-new_core.c @@ -286,7 +286,7 @@ lower_rung (struct RouteDirection *dir) GNUNET_CONTAINER_DLL_insert (rung->rd_head, rung->rd_tail, dir); - + dir->rung = rung; } @@ -438,6 +438,8 @@ route_message (struct CadetPeer *prev, GNUNET_CONTAINER_DLL_insert (nxt->rd_head, nxt->rd_tail, dir); + dir->rung = nxt; + /* add message into 'dir' buffer */ LOG (GNUNET_ERROR_TYPE_DEBUG, "Queueing new message of type %u from %s to %s on connection %s\n", -- 2.25.1