From: Christian Grothoff Date: Tue, 15 Mar 2011 13:37:44 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~18966 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c387d97879b2a78125a58e86d5bae07593389e69;p=oweals%2Fgnunet.git fix --- diff --git a/src/fs/gnunet-service-fs_push.c b/src/fs/gnunet-service-fs_push.c index 28406085b..da781bc07 100644 --- a/src/fs/gnunet-service-fs_push.c +++ b/src/fs/gnunet-service-fs_push.c @@ -372,9 +372,10 @@ find_content (struct MigrationReadyPeer *mrp) } pos = pos->next; } - if ( (NULL == best) && - (mig_size >= MAX_MIGRATION_QUEUE) ) + if (NULL == best) { + if (mig_size < MAX_MIGRATION_QUEUE) + return; /* will fill up eventually... */ /* failed to find migration target AND queue is full, purge most-forwarded block from queue to make room for more */