From 5f3f6615b7531a6c2f90bc074cbeffbe46a2efd0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 14 May 2012 11:40:17 +0000 Subject: [PATCH] -fixing #2345 --- src/fs/fs_download.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index 43cd5264b..4def42545 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c @@ -1535,6 +1535,7 @@ create_download_request (struct DownloadRequest *parent, if (dr->num_children * child_block_size < file_start_offset + desired_length - dr_offset) dr->num_children++; /* round up */ + dr->num_children -= head_skip; if (dr->num_children > CHK_PER_INODE) dr->num_children = CHK_PER_INODE; /* cap at max */ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, @@ -1544,7 +1545,6 @@ create_download_request (struct DownloadRequest *parent, dr->num_children); /* now we can get the total number of *interesting* children for this block */ - dr->num_children -= head_skip; /* why else would we have gotten here to begin with? (that'd be a bad logic error) */ GNUNET_assert (dr->num_children > 0); -- 2.25.1