From: Bart Polot Date: Mon, 12 Aug 2013 14:49:58 +0000 (+0000) Subject: - use after free X-Git-Tag: initial-import-from-subversion-38251~7905 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=860c615d8efd0ca2cf8ba24a527b94ae6fc96918;p=oweals%2Fgnunet.git - use after free --- 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? */