aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-06-26 12:15:18 +0000
committerBart Polot <bart@net.in.tum.de>2015-06-26 12:15:18 +0000
commit23718c7651d356990710906cc06bd819ba929463 (patch)
tree12eca39186143e4e54a6a462d21c63eefb13ce8c
parentf5dc24025e3fc35c5c10fd7cf22b59b0ebc271ac (diff)
downloadgnunet-23718c7651d356990710906cc06bd819ba929463.tar.gz
gnunet-23718c7651d356990710906cc06bd819ba929463.zip
- first log, then free
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c
index 5ce3f775d..42525ddbb 100644
--- a/src/cadet/gnunet-service-cadet_connection.c
+++ b/src/cadet/gnunet-service-cadet_connection.c
@@ -1861,8 +1861,6 @@ GCC_handle_create (void *cls, const struct GNUNET_PeerIdentity *peer,
1861 add_to_peer (c, orig_peer); 1861 add_to_peer (c, orig_peer);
1862 if (GNUNET_YES == does_connection_exist (c)) 1862 if (GNUNET_YES == does_connection_exist (c))
1863 { 1863 {
1864 path_destroy (path);
1865 GCC_destroy (c);
1866 // FIXME Peer created a connection equal to one we think exists 1864 // FIXME Peer created a connection equal to one we think exists
1867 // and is fine. What should we do? 1865 // and is fine. What should we do?
1868 // Use explicit duplicate? 1866 // Use explicit duplicate?
@@ -1871,6 +1869,9 @@ GCC_handle_create (void *cls, const struct GNUNET_PeerIdentity *peer,
1871 // Keep the one created by peer with higher ID? 1869 // Keep the one created by peer with higher ID?
1872 // For now: reject new connection until current confirmed dead 1870 // For now: reject new connection until current confirmed dead
1873 GNUNET_break_op (0); 1871 GNUNET_break_op (0);
1872 GCC_debug (c, GNUNET_ERROR_TYPE_WARNING);
1873 path_destroy (path);
1874 GCC_destroy (c);
1874 send_broken_unknown (cid, &my_full_id, NULL, peer); 1875 send_broken_unknown (cid, &my_full_id, NULL, peer);
1875 1876
1876 return GNUNET_OK; 1877 return GNUNET_OK;