diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-03-16 09:55:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-03-16 09:55:26 +0000 |
commit | 87a3f6f5afa582a53a86353896d129c40404c7fb (patch) | |
tree | 39fc4f4978f75c03ee9e0a577d99ce884d08b2f7 /src/hostlist/hostlist-client.c | |
parent | 95efc5d08313a956037ac08eac9b974481d09aa5 (diff) | |
download | gnunet-87a3f6f5afa582a53a86353896d129c40404c7fb.tar.gz gnunet-87a3f6f5afa582a53a86353896d129c40404c7fb.zip |
fixes
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); |