diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-25 18:11:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-25 18:11:37 +0000 |
commit | 9ea6c6cc680d8110b0c56393e9349a3b4f49ab69 (patch) | |
tree | 6dbf37d8367544a89a1591ddfff2f2c4dea30689 /src/fs | |
parent | ef1872a28ac7d3304731274f7cd58eca78d62b93 (diff) | |
download | gnunet-9ea6c6cc680d8110b0c56393e9349a3b4f49ab69.tar.gz gnunet-9ea6c6cc680d8110b0c56393e9349a3b4f49ab69.zip |
clenaer
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/gnunet-service-fs.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index e49ff17cd..1eb491877 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c | |||
@@ -2672,8 +2672,15 @@ handle_p2p_put (void *cls, | |||
2672 | &prq); | 2672 | &prq); |
2673 | cps = GNUNET_CONTAINER_multihashmap_get (connected_peers, | 2673 | cps = GNUNET_CONTAINER_multihashmap_get (connected_peers, |
2674 | &other->hashPubKey); | 2674 | &other->hashPubKey); |
2675 | cps->inc_preference += CONTENT_BANDWIDTH_VALUE + 1000 * prq.priority; | 2675 | if (cps != NULL) |
2676 | cps->trust_delta += prq.priority; | 2676 | { |
2677 | cps->inc_preference += CONTENT_BANDWIDTH_VALUE + 1000 * prq.priority; | ||
2678 | cps->trust_delta += prq.priority; | ||
2679 | } | ||
2680 | else | ||
2681 | { | ||
2682 | GNUNET_break (0); | ||
2683 | } | ||
2677 | if (GNUNET_YES == active_migration) | 2684 | if (GNUNET_YES == active_migration) |
2678 | { | 2685 | { |
2679 | #if DEBUG_FS | 2686 | #if DEBUG_FS |