[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: Fix force extend_path
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: Fix force extend_path |
Date: |
Sat, 13 Jan 2018 20:35:39 +0100 |
This is an automated email from the git hooks/post-receive script.
david-barksdale pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 93ee5f802 Fix force extend_path
93ee5f802 is described below
commit 93ee5f80204b1df7e495fc95bbc2270c11da9b6d
Author: David Barksdale <address@hidden>
AuthorDate: Sat Jan 13 13:35:15 2018 -0600
Fix force extend_path
---
src/cadet/gnunet-service-cadet_paths.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/cadet/gnunet-service-cadet_paths.c
b/src/cadet/gnunet-service-cadet_paths.c
index 9dd6f1ddd..b443cf9e8 100644
--- a/src/cadet/gnunet-service-cadet_paths.c
+++ b/src/cadet/gnunet-service-cadet_paths.c
@@ -429,7 +429,17 @@ extend_path (struct CadetPeerPath *path,
path->hn);
path->hn = NULL;
path->entries_length = old_len + num_peers;
- attach_path (path, old_len);
+ if (GNUNET_YES == force)
+ {
+ int end = path->entries_length - 1;
+
+ path->hn = GCP_attach_path (path->entries[end]->peer,
+ path,
+ end,
+ GNUNET_YES);
+ } else {
+ attach_path (path, old_len);
+ }
if (NULL == path->hn)
{
/* none of the peers is interested in this path;
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: Fix force extend_path,
gnunet <=