From a8ad3c6b872407157dd28517649113f3ed7db62f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 31 Jan 2017 15:54:11 +0100 Subject: [PATCH] initialize direction in rung DLL --- src/cadet/gnunet-service-cadet-new_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cadet/gnunet-service-cadet-new_core.c b/src/cadet/gnunet-service-cadet-new_core.c index 41b569cba..9b2f1a6fb 100644 --- a/src/cadet/gnunet-service-cadet-new_core.c +++ b/src/cadet/gnunet-service-cadet-new_core.c @@ -706,6 +706,10 @@ dir_init (struct RouteDirection *dir, dir->mqm = GCP_request_mq (hop, &dir_ready_cb, dir); + GNUNET_CONTAINER_DLL_insert (rung_head->rd_head, + rung_head->rd_tail, + dir); + dir->rung = rung_head; GNUNET_assert (GNUNET_YES == dir->is_ready); } -- 2.25.1