diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-05 13:39:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-05 13:39:20 +0000 |
commit | eb123f37892e3fd79a33f0375ab99a52dc4b6915 (patch) | |
tree | be7a0b81e43496742d1242f5819d43e09e59830e /src/fs/fs_publish.c | |
parent | b93c5a4845284ddf08f57d6487a8950c36405bdc (diff) | |
download | gnunet-eb123f37892e3fd79a33f0375ab99a52dc4b6915.tar.gz gnunet-eb123f37892e3fd79a33f0375ab99a52dc4b6915.zip |
bugs
Diffstat (limited to 'src/fs/fs_publish.c')
-rw-r--r-- | src/fs/fs_publish.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c index ba2d09533..6364dac0a 100644 --- a/src/fs/fs_publish.c +++ b/src/fs/fs_publish.c | |||
@@ -557,6 +557,7 @@ publish_content (struct GNUNET_FS_PublishContext *sc) | |||
557 | uint64_t size; | 557 | uint64_t size; |
558 | 558 | ||
559 | p = sc->fi_pos; | 559 | p = sc->fi_pos; |
560 | GNUNET_assert (p != NULL); | ||
560 | if (NULL == p->te) | 561 | if (NULL == p->te) |
561 | { | 562 | { |
562 | if (p->is_directory) | 563 | if (p->is_directory) |
@@ -1062,13 +1063,13 @@ GNUNET_FS_publish_start (struct GNUNET_FS_Handle *h, | |||
1062 | if (NULL != nuid) | 1063 | if (NULL != nuid) |
1063 | ret->nuid = GNUNET_strdup (nuid); | 1064 | ret->nuid = GNUNET_strdup (nuid); |
1064 | } | 1065 | } |
1065 | GNUNET_FS_publish_sync_ (ret); | ||
1066 | /* signal start */ | 1066 | /* signal start */ |
1067 | GNUNET_FS_file_information_inspect (ret->fi, | 1067 | GNUNET_FS_file_information_inspect (ret->fi, |
1068 | &fip_signal_start, | 1068 | &fip_signal_start, |
1069 | ret); | 1069 | ret); |
1070 | ret->fi_pos = ret->fi; | 1070 | ret->fi_pos = ret->fi; |
1071 | ret->top = GNUNET_FS_make_top (h, &publish_signal_suspend, ret); | 1071 | ret->top = GNUNET_FS_make_top (h, &publish_signal_suspend, ret); |
1072 | GNUNET_FS_publish_sync_ (ret); | ||
1072 | // FIXME: calculate space needed for "fi" | 1073 | // FIXME: calculate space needed for "fi" |
1073 | // and reserve as first task (then trigger | 1074 | // and reserve as first task (then trigger |
1074 | // "publish_main" from that continuation)! | 1075 | // "publish_main" from that continuation)! |