summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-06-25 03:16:53 +0000
committerBart Polot <bart@net.in.tum.de>2015-06-25 03:16:53 +0000
commit6b412abd1892df726b73837676d03990705f4ea7 (patch)
tree6085a2a09007af506648965f0c12814f0f709ea2 /src
parent315bbbff5376555ca1957a0442325ddafb9553f1 (diff)
- If the path was cleared before, connection is not registered with neighbors. Should fix #3845, #3846
Diffstat (limited to 'src')
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c
index c446b05f6..d4058db5b 100644
--- a/src/cadet/gnunet-service-cadet_connection.c
+++ b/src/cadet/gnunet-service-cadet_connection.c
@@ -1577,6 +1577,9 @@ unregister_neighbors (struct CadetConnection *c)
{
struct CadetPeer *peer;
+ if (NULL == c->path)
+ return;
+
peer = get_next_hop (c);
GNUNET_assert (c->next_peer == peer);
GCP_remove_connection (peer, c);