diff options
author | David Barksdale <amatus@amat.us> | 2018-01-13 13:35:15 -0600 |
---|---|---|
committer | David Barksdale <amatus@amat.us> | 2018-01-13 13:35:15 -0600 |
commit | 93ee5f80204b1df7e495fc95bbc2270c11da9b6d (patch) | |
tree | ad624eff04d14e1869090505fde935459b226c37 /src/cadet | |
parent | 71ebcf79bcfafb5388e3ab9165358d006978238a (diff) | |
download | gnunet-93ee5f80204b1df7e495fc95bbc2270c11da9b6d.tar.gz gnunet-93ee5f80204b1df7e495fc95bbc2270c11da9b6d.zip |
Fix force extend_path
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet_paths.c | 12 |
1 files changed, 11 insertions, 1 deletions
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, | |||
429 | path->hn); | 429 | path->hn); |
430 | path->hn = NULL; | 430 | path->hn = NULL; |
431 | path->entries_length = old_len + num_peers; | 431 | path->entries_length = old_len + num_peers; |
432 | attach_path (path, old_len); | 432 | if (GNUNET_YES == force) |
433 | { | ||
434 | int end = path->entries_length - 1; | ||
435 | |||
436 | path->hn = GCP_attach_path (path->entries[end]->peer, | ||
437 | path, | ||
438 | end, | ||
439 | GNUNET_YES); | ||
440 | } else { | ||
441 | attach_path (path, old_len); | ||
442 | } | ||
433 | if (NULL == path->hn) | 443 | if (NULL == path->hn) |
434 | { | 444 | { |
435 | /* none of the peers is interested in this path; | 445 | /* none of the peers is interested in this path; |