init rung field
authorChristian Grothoff <christian@grothoff.org>
Tue, 31 Jan 2017 12:56:21 +0000 (13:56 +0100)
committerChristian Grothoff <christian@grothoff.org>
Tue, 31 Jan 2017 12:56:21 +0000 (13:56 +0100)
src/cadet/gnunet-service-cadet-new_core.c

index 2c050af6ddee92fc09739a3ac85ceac5fcb7270e..24b58982d3ea05786f60b6667a127f8c254c5fd3 100644 (file)
@@ -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",