aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-23 09:13:01 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-23 09:13:01 +0000
commit737db6486404cbb5a9bb0f0918dcfc211a8b6066 (patch)
treea92a5c2817ca07dfffd6294cb3cd80bbe51911bf /src
parent15bec1f951708a370e2c6cc2ffd48286ca68015b (diff)
downloadgnunet-737db6486404cbb5a9bb0f0918dcfc211a8b6066.tar.gz
gnunet-737db6486404cbb5a9bb0f0918dcfc211a8b6066.zip
-fix time assertion introduce in last patch
Diffstat (limited to 'src')
-rw-r--r--src/fs/fs_publish.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c
index c9e2b0e6a..beeab8b12 100644
--- a/src/fs/fs_publish.c
+++ b/src/fs/fs_publish.c
@@ -1377,10 +1377,7 @@ GNUNET_FS_publish_stop (struct GNUNET_FS_PublishContext *pc)
1377 GNUNET_free (pc->fi->serialization); 1377 GNUNET_free (pc->fi->serialization);
1378 pc->fi->serialization = NULL; 1378 pc->fi->serialization = NULL;
1379 } 1379 }
1380 if (NULL == pc->fi->chk_uri) 1380 off = (NULL == pc->fi->chk_uri) ? 0 : GNUNET_ntohll (pc->fi->chk_uri->data.chk.file_length);
1381 off = 0; /* won't be completed anymore */
1382 else
1383 off = pc->fi->is_directory ? pc->fi->data.dir.contents_completed : pc->fi->data.file.file_size; /* we were done */
1384 1381
1385 if (NULL != pc->serialization) 1382 if (NULL != pc->serialization)
1386 { 1383 {