initialize direction in rung DLL
authorChristian Grothoff <christian@grothoff.org>
Tue, 31 Jan 2017 14:54:11 +0000 (15:54 +0100)
committerChristian Grothoff <christian@grothoff.org>
Tue, 31 Jan 2017 14:54:11 +0000 (15:54 +0100)
src/cadet/gnunet-service-cadet-new_core.c

index 41b569cbab13edd7c6ea3d7166e04734ad48f387..9b2f1a6fb46142bb1773715cab3566a6c4d7072d 100644 (file)
@@ -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);
 }