diff options
Diffstat (limited to 'src/hostlist/hostlist-client.c')
-rw-r--r-- | src/hostlist/hostlist-client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 99b43f008..90d67ee75 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c | |||
@@ -148,7 +148,8 @@ download_hostlist_processor (void *ptr, | |||
148 | (int64_t) total, | 148 | (int64_t) total, |
149 | GNUNET_NO); | 149 | GNUNET_NO); |
150 | left = total; | 150 | left = total; |
151 | while (left > 0) | 151 | while ( (left > 0) || |
152 | (download_pos > 0) ) | ||
152 | { | 153 | { |
153 | cpy = GNUNET_MIN (total, GNUNET_SERVER_MAX_MESSAGE_SIZE - download_pos); | 154 | cpy = GNUNET_MIN (total, GNUNET_SERVER_MAX_MESSAGE_SIZE - download_pos); |
154 | GNUNET_assert (cpy > 0); | 155 | GNUNET_assert (cpy > 0); |