- use after free
authorBart Polot <bart@net.in.tum.de>
Mon, 12 Aug 2013 14:49:58 +0000 (14:49 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 12 Aug 2013 14:49:58 +0000 (14:49 +0000)
src/mesh/gnunet-service-mesh-enc.c

index ff43af0f059fc0c71fd13856795612fb617de1b9..ccee1c40a1e0c0e386815c1593315b60d481b40c 100644 (file)
@@ -4827,7 +4827,7 @@ handle_mesh_connection_create (void *cls,
   }
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "  Own position: %u\n", own_pos);
   path_add_to_peers (path, GNUNET_NO);
-  c->path = path;
+  c->path = path_duplicate (path);
   c->own_pos = own_pos;
 
   /* Is it a connection to us? */