diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-05-30 18:33:38 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-05-30 18:33:38 +0000 |
commit | ddf8da52e94c520a93383edddfef3f537664a7c3 (patch) | |
tree | 9c884d67143b5d615dfd91f49fd8c2ecd65db7c0 /src/fs/fs_search.c | |
parent | 2f90d42c880d86c2ebd272f7ae975401a92f2759 (diff) | |
download | gnunet-ddf8da52e94c520a93383edddfef3f537664a7c3.tar.gz gnunet-ddf8da52e94c520a93383edddfef3f537664a7c3.zip |
-export FS handle during events, as we might generate events duing FS_start and client then doesn't know the handle yet
Diffstat (limited to 'src/fs/fs_search.c')
-rw-r--r-- | src/fs/fs_search.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fs/fs_search.c b/src/fs/fs_search.c index 2fa14f68d..10627753a 100644 --- a/src/fs/fs_search.c +++ b/src/fs/fs_search.c | |||
@@ -61,6 +61,7 @@ GNUNET_FS_search_make_status_ (struct GNUNET_FS_ProgressInfo *pi, | |||
61 | ? GNUNET_TIME_absolute_get_duration (sc->start_time) | 61 | ? GNUNET_TIME_absolute_get_duration (sc->start_time) |
62 | : GNUNET_TIME_UNIT_ZERO; | 62 | : GNUNET_TIME_UNIT_ZERO; |
63 | pi->value.search.anonymity = (NULL != sc) ? sc->anonymity : 0; | 63 | pi->value.search.anonymity = (NULL != sc) ? sc->anonymity : 0; |
64 | pi->fsh = h; | ||
64 | ret = h->upcb (h->upcb_cls, pi); | 65 | ret = h->upcb (h->upcb_cls, pi); |
65 | return ret; | 66 | return ret; |
66 | } | 67 | } |
@@ -457,6 +458,7 @@ GNUNET_FS_probe (struct GNUNET_FS_Handle *h, | |||
457 | { | 458 | { |
458 | struct GNUNET_FS_SearchResult *sr; | 459 | struct GNUNET_FS_SearchResult *sr; |
459 | 460 | ||
461 | GNUNET_assert (NULL != h); | ||
460 | sr = GNUNET_new (struct GNUNET_FS_SearchResult); | 462 | sr = GNUNET_new (struct GNUNET_FS_SearchResult); |
461 | sr->h = h; | 463 | sr->h = h; |
462 | sr->uri = GNUNET_FS_uri_dup (uri); | 464 | sr->uri = GNUNET_FS_uri_dup (uri); |