fix
authorChristian Grothoff <christian@grothoff.org>
Wed, 14 Sep 2011 11:55:02 +0000 (11:55 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 14 Sep 2011 11:55:02 +0000 (11:55 +0000)
src/dht/gnunet-service-dht.c

index b43a1757dd8fe6c566a6a2fe05ecbe215eb8b607..237db023c63ef508db149a119065471199647f79 100644 (file)
@@ -3006,7 +3006,7 @@ select_peer (const GNUNET_HashCode * target,
         pos = pos->next;
         continue;               /* Ignore bloomfiltered peers */
       }
-      if (0 == selected)
+      if (0 == selected--)
        return pos;     
       pos = pos->next;
     }