From: Christian Grothoff Date: Tue, 21 Dec 2010 16:08:24 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~19460 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7cd7199155b6313c9e1a4c10dc2efe21cacfd823;p=oweals%2Fgnunet.git fix --- diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index fc55728b9..e522133e0 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c @@ -3733,13 +3733,11 @@ handle_p2p_put (void *cls, start); } putl = GNUNET_LOAD_get_load (datastore_put_load); - if ( (GNUNET_NO == prq.request_found) && + if ( (NULL != (cp = prq.sender)) && + (GNUNET_NO == prq.request_found) && ( (GNUNET_YES != active_to_migration) || - (putl > 2.5 * (1 + prq.priority)) ) ) + (putl > 2.5 * (1 + prq.priority)) ) ) { - cp = GNUNET_CONTAINER_multihashmap_get (connected_peers, - &other->hashPubKey); - GNUNET_assert (NULL != cp); if (GNUNET_TIME_absolute_get_duration (cp->last_migration_block).rel_value < 5000) return GNUNET_OK; /* already blocked */ /* We're too busy; send MigrationStop message! */