From 7cd7199155b6313c9e1a4c10dc2efe21cacfd823 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 21 Dec 2010 16:08:24 +0000 Subject: [PATCH] fix --- src/fs/gnunet-service-fs.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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! */ -- 2.25.1