From 083fbead617611637601181810739a547cfaacac Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 26 Nov 2013 15:34:52 +0000 Subject: [PATCH] - fix crash on GMC_create (3131, 3123) --- src/mesh/gnunet-service-mesh_connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index 46cf04226..0b5f65188 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c @@ -1274,7 +1274,7 @@ GMC_handle_create (void *cls, const struct GNUNET_PeerIdentity *peer, if (c->own_pos == size - 1) { LOG (GNUNET_ERROR_TYPE_DEBUG, " It's for us!\n"); - GMP_add_path_to_origin (orig_peer, path, GNUNET_YES); + GMP_add_path_to_origin (orig_peer, path_duplicate (path), GNUNET_YES); add_to_peer (c, orig_peer); if (MESH_TUNNEL3_NEW == GMT_get_state (c->t)) -- 2.25.1