diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-06-17 09:29:04 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-06-17 09:29:04 +0000 |
commit | 8510aa3ca2bffb2bbc498958004becbb8f88e4cb (patch) | |
tree | 624dc9e5c5221fb88244d046904a944429ff7262 /src | |
parent | a68e10c83ee0bcfb0c29ddb6d9f3e387eff399e5 (diff) | |
download | gnunet-8510aa3ca2bffb2bbc498958004becbb8f88e4cb.tar.gz gnunet-8510aa3ca2bffb2bbc498958004becbb8f88e4cb.zip |
- log
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/cadet_path.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cadet/cadet_path.c b/src/cadet/cadet_path.c index 575509111..16e55aa0f 100644 --- a/src/cadet/cadet_path.c +++ b/src/cadet/cadet_path.c | |||
@@ -48,6 +48,8 @@ path_destroy_delayed (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
48 | struct CadetPeer *peer; | 48 | struct CadetPeer *peer; |
49 | 49 | ||
50 | LOG (GNUNET_ERROR_TYPE_INFO, "Destroy delayed %p (%u)\n", path, path->length); | 50 | LOG (GNUNET_ERROR_TYPE_INFO, "Destroy delayed %p (%u)\n", path, path->length); |
51 | if ((GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason) != 0) | ||
52 | return; | ||
51 | path->path_delete = NULL; | 53 | path->path_delete = NULL; |
52 | peer = GCP_get_short (path->peers[path->length - 1]); | 54 | peer = GCP_get_short (path->peers[path->length - 1]); |
53 | if (2 < path->length) | 55 | if (2 < path->length) |
@@ -75,6 +77,7 @@ path_new (unsigned int length) | |||
75 | p->length = length; | 77 | p->length = length; |
76 | p->peers = GNUNET_malloc (length * sizeof (GNUNET_PEER_Id)); | 78 | p->peers = GNUNET_malloc (length * sizeof (GNUNET_PEER_Id)); |
77 | } | 79 | } |
80 | LOG (GNUNET_ERROR_TYPE_INFO, "New path %p (%u)\n", path, path->length); | ||
78 | return p; | 81 | return p; |
79 | } | 82 | } |
80 | 83 | ||