From: Christian Grothoff Date: Tue, 31 Jan 2017 12:56:21 +0000 (+0100) Subject: init rung field X-Git-Tag: taler-0.2.1~223 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=57fcfd85d203f7bc1cf7d5abaa50bed5590edc2f;p=oweals%2Fgnunet.git init rung field --- 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",