gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r30785 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r30785 - gnunet/src/mesh
Date: Mon, 18 Nov 2013 19:58:35 +0100

Author: bartpolot
Date: 2013-11-18 19:58:35 +0100 (Mon, 18 Nov 2013)
New Revision: 30785

Modified:
   gnunet/src/mesh/gnunet-service-mesh_connection.c
Log:
- fix handling of path's on duplicate PATH_CREATE messages


Modified: gnunet/src/mesh/gnunet-service-mesh_connection.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_connection.c    2013-11-18 18:07:56 UTC 
(rev 30784)
+++ gnunet/src/mesh/gnunet-service-mesh_connection.c    2013-11-18 18:58:35 UTC 
(rev 30785)
@@ -1249,7 +1249,7 @@
   }
   else
   {
-    path = c->path;
+    path = path_duplicate (c->path);
   }
   if (MESH_CONNECTION_NEW == c->state)
     connection_change_state (c, MESH_CONNECTION_SENT);
@@ -1282,9 +1282,10 @@
     /* It's for somebody else! Retransmit. */
     LOG (GNUNET_ERROR_TYPE_DEBUG, "  Retransmitting.\n");
     GMP_add_path (dest_peer, path_duplicate (path), GNUNET_NO);
-    GMP_add_path_to_origin (orig_peer, path, GNUNET_NO);
+    GMP_add_path_to_origin (orig_peer, path_duplicate (path), GNUNET_NO);
     GMC_send_prebuilt_message (message, c, GNUNET_YES, NULL, NULL);
   }
+  path_destroy (path);
   return GNUNET_OK;
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]