gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r36003 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r36003 - gnunet/src/cadet
Date: Fri, 26 Jun 2015 14:15:18 +0200

Author: bartpolot
Date: 2015-06-26 14:15:18 +0200 (Fri, 26 Jun 2015)
New Revision: 36003

Modified:
   gnunet/src/cadet/gnunet-service-cadet_connection.c
Log:
- first log, then free

Modified: gnunet/src/cadet/gnunet-service-cadet_connection.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_connection.c  2015-06-26 12:15:17 UTC 
(rev 36002)
+++ gnunet/src/cadet/gnunet-service-cadet_connection.c  2015-06-26 12:15:18 UTC 
(rev 36003)
@@ -1861,8 +1861,6 @@
     add_to_peer (c, orig_peer);
     if (GNUNET_YES == does_connection_exist (c))
     {
-      path_destroy (path);
-      GCC_destroy (c);
       // FIXME Peer created a connection equal to one we think exists
       //       and is fine. What should we do?
       // Use explicit duplicate?
@@ -1871,6 +1869,9 @@
       // Keep the one created by peer with higher ID?
       // For now: reject new connection until current confirmed dead
       GNUNET_break_op (0);
+      GCC_debug (c, GNUNET_ERROR_TYPE_WARNING);
+      path_destroy (path);
+      GCC_destroy (c);
       send_broken_unknown (cid, &my_full_id, NULL, peer);
 
       return GNUNET_OK;




reply via email to

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