implement get_path_from_route
[oweals/gnunet.git] / src / cadet / gnunet-service-cadet-new_core.c
index 39a6a9296b7fc61f00fd118124d4a40fd0d69cf4..26952f6160d4ed601ef21b74075a0dd19268468c 100644 (file)
 #include "gnunet_core_service.h"
 #include "cadet_protocol.h"
 
+
+#define LOG(level, ...) GNUNET_log_from(level,"cadet-cor",__VA_ARGS__)
+
+
 /**
  * Number of messages we are willing to buffer per route.
  */
@@ -423,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);