implement get_path_from_route
[oweals/gnunet.git] / src / cadet / gnunet-service-cadet-new_core.c
index d857a577ef61b6dcaa9c42c8a9b081c035c191fd..26952f6160d4ed601ef21b74075a0dd19268468c 100644 (file)
@@ -427,7 +427,7 @@ handle_connection_create (void *cls,
       return;
     }
 
-    path = GCPP_get_path_from_route (path_length,
+    path = GCPP_get_path_from_route (path_length - 1,
                                      pids);
     origin = GCP_get (&pids[0],
                       GNUNET_YES);