diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-11-28 19:43:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-11-28 19:43:21 +0000 |
commit | be7b16f744d7c840498874f57dacfe9403080056 (patch) | |
tree | d53317d4e70aaacf613b295a412630ebdcf54a5a /src/fs/gnunet-service-fs_lc.c | |
parent | ce30893f17420b6db33927575a324d0e9f3ea6de (diff) | |
download | gnunet-be7b16f744d7c840498874f57dacfe9403080056.tar.gz gnunet-be7b16f744d7c840498874f57dacfe9403080056.zip |
-fix left-over confusion between hash code and peer identity size from recent peer identity format change
Diffstat (limited to 'src/fs/gnunet-service-fs_lc.c')
-rw-r--r-- | src/fs/gnunet-service-fs_lc.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/fs/gnunet-service-fs_lc.c b/src/fs/gnunet-service-fs_lc.c index 6d62085e6..0f1d69198 100644 --- a/src/fs/gnunet-service-fs_lc.c +++ b/src/fs/gnunet-service-fs_lc.c | |||
@@ -296,17 +296,16 @@ client_response_handler (void *cls, enum GNUNET_BLOCK_EvaluationResult eval, | |||
296 | * @param client identification of the client | 296 | * @param client identification of the client |
297 | * @param message the actual message | 297 | * @param message the actual message |
298 | * @param prptr where to store the pending request handle for the request | 298 | * @param prptr where to store the pending request handle for the request |
299 | * @return GNUNET_YES to start local processing, | 299 | * @return #GNUNET_YES to start local processing, |
300 | * GNUNET_NO to not (yet) start local processing, | 300 | * #GNUNET_NO to not (yet) start local processing, |
301 | * GNUNET_SYSERR on error | 301 | * #GNUNET_SYSERR on error |
302 | */ | 302 | */ |
303 | int | 303 | int |
304 | GSF_local_client_start_search_handler_ (struct GNUNET_SERVER_Client *client, | 304 | GSF_local_client_start_search_handler_ (struct GNUNET_SERVER_Client *client, |
305 | const struct GNUNET_MessageHeader | 305 | const struct GNUNET_MessageHeader *message, |
306 | *message, | ||
307 | struct GSF_PendingRequest **prptr) | 306 | struct GSF_PendingRequest **prptr) |
308 | { | 307 | { |
309 | static struct GNUNET_HashCode all_zeros; | 308 | static struct GNUNET_PeerIdentity all_zeros; |
310 | const struct SearchMessage *sm; | 309 | const struct SearchMessage *sm; |
311 | struct GSF_LocalClient *lc; | 310 | struct GSF_LocalClient *lc; |
312 | struct ClientRequest *cr; | 311 | struct ClientRequest *cr; |
@@ -378,9 +377,8 @@ GSF_local_client_start_search_handler_ (struct GNUNET_SERVER_Client *client, | |||
378 | &sm->query, | 377 | &sm->query, |
379 | (0 != | 378 | (0 != |
380 | memcmp (&sm->target, &all_zeros, | 379 | memcmp (&sm->target, &all_zeros, |
381 | sizeof (struct GNUNET_HashCode))) | 380 | sizeof (struct GNUNET_PeerIdentity))) |
382 | ? (const struct GNUNET_PeerIdentity *) | 381 | ? &sm->target : NULL, NULL, 0, |
383 | &sm->target : NULL, NULL, 0, | ||
384 | 0 /* bf */ , | 382 | 0 /* bf */ , |
385 | ntohl (sm->anonymity_level), | 383 | ntohl (sm->anonymity_level), |
386 | 0 /* priority */ , | 384 | 0 /* priority */ , |