From 860c615d8efd0ca2cf8ba24a527b94ae6fc96918 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 12 Aug 2013 14:49:58 +0000 Subject: [PATCH] - use after free --- src/mesh/gnunet-service-mesh-enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/gnunet-service-mesh-enc.c b/src/mesh/gnunet-service-mesh-enc.c index ff43af0f0..ccee1c40a 100644 --- a/src/mesh/gnunet-service-mesh-enc.c +++ b/src/mesh/gnunet-service-mesh-enc.c @@ -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? */ -- 2.25.1