nicer order of LOG statements
authorChristian Grothoff <christian@grothoff.org>
Sun, 22 Jan 2017 14:21:42 +0000 (15:21 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sun, 22 Jan 2017 14:21:42 +0000 (15:21 +0100)
src/cadet/gnunet-service-cadet-new_core.c

index 6b5a02dc15da46ea157bf22667888c40beeb9b17..7cff68f4abfe5e9c53fb569fb86a81f730ae2548 100644 (file)
@@ -468,15 +468,14 @@ handle_connection_create (void *cls,
       return;
     }
 
-    path = GCPP_get_path_from_route (path_length - 1,
-                                     pids);
     origin = GCP_get (&pids[0],
                       GNUNET_YES);
     LOG (GNUNET_ERROR_TYPE_DEBUG,
-         "Received CREATE message from %s via path %s for connection %s\n",
+         "Received CREATE message from %s for connection %s, building inverse path\n",
          GCP_2s (origin),
-         GCPP_2s (path),
          GNUNET_sh2s (&msg->cid.connection_of_tunnel));
+    path = GCPP_get_path_from_route (path_length - 1,
+                                     pids);
     GCT_add_inbound_connection (GCT_create_tunnel (origin),
                                 &msg->cid,
                                 path);