of course we need 'i' here, not 'off'
authorChristian Grothoff <christian@grothoff.org>
Sun, 29 Jan 2017 18:39:23 +0000 (19:39 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sun, 29 Jan 2017 18:39:23 +0000 (19:39 +0100)
src/cadet/gnunet-service-cadet-new_connection.c

index 13d4c4a0c79e069ff2262a171a76332107ca96d1..f3603a694c7622b8f1c5ab9d4b97c6bfd406c3e8 100644 (file)
@@ -719,7 +719,7 @@ connection_create (struct CadetPeer *destination,
                        cc);
   for (unsigned int i=0;i<off;i++)
     GCP_add_connection (GCPP_get_peer_at_offset (path,
-                                                 off),
+                                                 i),
                         cc);
 
   first_hop = GCPP_get_peer_at_offset (path,