diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-13 17:51:29 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-13 17:51:38 +0100 |
commit | 6b659c8a65c34d194d6440489442c411bb3f4c26 (patch) | |
tree | d7ec6931b2ef6267a964ec14819323dbb9833d57 /src/cadet/cadet_api_get_path.c | |
parent | aaca8161989c5af3f46251cd3e8d5fb531a5cb01 (diff) | |
download | gnunet-6b659c8a65c34d194d6440489442c411bb3f4c26.tar.gz gnunet-6b659c8a65c34d194d6440489442c411bb3f4c26.zip |
trying to fix #5532
Diffstat (limited to 'src/cadet/cadet_api_get_path.c')
-rw-r--r-- | src/cadet/cadet_api_get_path.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/cadet/cadet_api_get_path.c b/src/cadet/cadet_api_get_path.c index 2f35e365e..fcc79c3d5 100644 --- a/src/cadet/cadet_api_get_path.c +++ b/src/cadet/cadet_api_get_path.c | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -66,7 +66,7 @@ struct GNUNET_CADET_GetPath | |||
66 | * Backoff for reconnect attempts. | 66 | * Backoff for reconnect attempts. |
67 | */ | 67 | */ |
68 | struct GNUNET_TIME_Relative backoff; | 68 | struct GNUNET_TIME_Relative backoff; |
69 | 69 | ||
70 | /** | 70 | /** |
71 | * Peer we want information about. | 71 | * Peer we want information about. |
72 | */ | 72 | */ |
@@ -109,7 +109,7 @@ check_get_path (void *cls, | |||
109 | /** | 109 | /** |
110 | * Process a local peer info reply, pass info to the user. | 110 | * Process a local peer info reply, pass info to the user. |
111 | * | 111 | * |
112 | * @param cls Closure | 112 | * @param cls Closure |
113 | * @param message Message itself. | 113 | * @param message Message itself. |
114 | */ | 114 | */ |
115 | static void | 115 | static void |
@@ -118,9 +118,10 @@ handle_get_path (void *cls, | |||
118 | { | 118 | { |
119 | struct GNUNET_CADET_GetPath *gp = cls; | 119 | struct GNUNET_CADET_GetPath *gp = cls; |
120 | struct GNUNET_CADET_PeerPathDetail ppd; | 120 | struct GNUNET_CADET_PeerPathDetail ppd; |
121 | 121 | ||
122 | ppd.peer = gp->id; | 122 | ppd.peer = gp->id; |
123 | ppd.path = (const struct GNUNET_PeerIdentity *) &message[1]; | 123 | ppd.path = (const struct GNUNET_PeerIdentity *) &message[1]; |
124 | ppd.target_offset = ntohl (message->off); | ||
124 | ppd.path_length = (ntohs (message->header.size) - sizeof (*message)) | 125 | ppd.path_length = (ntohs (message->header.size) - sizeof (*message)) |
125 | / sizeof (struct GNUNET_PeerIdentity); | 126 | / sizeof (struct GNUNET_PeerIdentity); |
126 | gp->path_cb (gp->path_cb_cls, | 127 | gp->path_cb (gp->path_cb_cls, |
@@ -131,7 +132,7 @@ handle_get_path (void *cls, | |||
131 | /** | 132 | /** |
132 | * Process a local peer info reply, pass info to the user. | 133 | * Process a local peer info reply, pass info to the user. |
133 | * | 134 | * |
134 | * @param cls Closure | 135 | * @param cls Closure |
135 | * @param message Message itself. | 136 | * @param message Message itself. |
136 | */ | 137 | */ |
137 | static void | 138 | static void |
@@ -177,7 +178,7 @@ error_handler (void *cls, | |||
177 | gp); | 178 | gp); |
178 | } | 179 | } |
179 | 180 | ||
180 | 181 | ||
181 | /** | 182 | /** |
182 | * Reconnect to the service and try again. | 183 | * Reconnect to the service and try again. |
183 | * | 184 | * |