diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-12 14:21:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-12 14:21:26 +0000 |
commit | 440151484373b16aca0414771b7f120114a9e460 (patch) | |
tree | fa07a73ad18dc37a358c9ab9497a21552cb93758 /src/dht | |
parent | c44ec6c4cbc9534a3c7f5c0de9406c00305f8f52 (diff) | |
download | gnunet-440151484373b16aca0414771b7f120114a9e460.tar.gz gnunet-440151484373b16aca0414771b7f120114a9e460.zip |
leak
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index f4717711f..440fdf17f 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -740,6 +740,7 @@ handle_core_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) | |||
740 | to_remove->preference_task = GNUNET_SCHEDULER_NO_TASK; | 740 | to_remove->preference_task = GNUNET_SCHEDULER_NO_TASK; |
741 | } | 741 | } |
742 | current_bucket = find_bucket (&to_remove->id.hashPubKey); | 742 | current_bucket = find_bucket (&to_remove->id.hashPubKey); |
743 | GNUNET_assert (current_bucket >= 0); | ||
743 | GNUNET_CONTAINER_DLL_remove (k_buckets[current_bucket].head, | 744 | GNUNET_CONTAINER_DLL_remove (k_buckets[current_bucket].head, |
744 | k_buckets[current_bucket].tail, | 745 | k_buckets[current_bucket].tail, |
745 | to_remove); | 746 | to_remove); |
@@ -995,6 +996,7 @@ am_closest_peer (const GNUNET_HashCode *key, | |||
995 | if (0 == memcmp (&my_identity.hashPubKey, key, sizeof (GNUNET_HashCode))) | 996 | if (0 == memcmp (&my_identity.hashPubKey, key, sizeof (GNUNET_HashCode))) |
996 | return GNUNET_YES; | 997 | return GNUNET_YES; |
997 | bucket_num = find_bucket (key); | 998 | bucket_num = find_bucket (key); |
999 | GNUNET_assert (bucket_num >= 0); | ||
998 | bits = GNUNET_CRYPTO_hash_matching_bits (&my_identity.hashPubKey, key); | 1000 | bits = GNUNET_CRYPTO_hash_matching_bits (&my_identity.hashPubKey, key); |
999 | pos = k_buckets[bucket_num].head; | 1001 | pos = k_buckets[bucket_num].head; |
1000 | count = 0; | 1002 | count = 0; |
@@ -1392,6 +1394,7 @@ GDS_NEIGHBOURS_handle_get (enum GNUNET_BLOCK_Type type, | |||
1392 | if (msize >= GNUNET_SERVER_MAX_MESSAGE_SIZE) | 1394 | if (msize >= GNUNET_SERVER_MAX_MESSAGE_SIZE) |
1393 | { | 1395 | { |
1394 | GNUNET_break (0); | 1396 | GNUNET_break (0); |
1397 | GNUNET_free (targets); | ||
1395 | return; | 1398 | return; |
1396 | } | 1399 | } |
1397 | GNUNET_STATISTICS_update (GDS_stats, | 1400 | GNUNET_STATISTICS_update (GDS_stats, |