aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-19 16:20:25 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-19 16:20:25 +0100
commitd68731944ec84c09c1841580c6adc3e40ef7e397 (patch)
tree66bdce0d87f7dfd46cfcece5d2bb9aa93e90079f /src/dht/gnunet-service-dht_neighbours.c
parent95ffa9b9ac9711539aac3feb15eefcfebfc14825 (diff)
downloadgnunet-d68731944ec84c09c1841580c6adc3e40ef7e397.tar.gz
gnunet-d68731944ec84c09c1841580c6adc3e40ef7e397.zip
-fix assertion, fix key initialization
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r--src/dht/gnunet-service-dht_neighbours.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c
index fb965b569..2e25b4d1e 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -1807,9 +1807,10 @@ handle_dht_p2p_put (void *cls,
1807 GNUNET_memcmp (&pp[i].pred, 1807 GNUNET_memcmp (&pp[i].pred,
1808 &pp[j].pred)); 1808 &pp[j].pred));
1809 } 1809 }
1810 GNUNET_break (0 != 1810 if (i < putlen)
1811 GNUNET_memcmp (&pp[i].pred, 1811 GNUNET_break (0 !=
1812 &peer->id)); 1812 GNUNET_memcmp (&pp[i].pred,
1813 &peer->id));
1813 } 1814 }
1814 if (0 != 1815 if (0 !=
1815 GNUNET_DHT_verify_path (&bd.key, 1816 GNUNET_DHT_verify_path (&bd.key,
@@ -2338,6 +2339,7 @@ handle_dht_p2p_result (void *cls,
2338 .expiration_time = GNUNET_TIME_absolute_ntoh (prm->expiration_time), 2339 .expiration_time = GNUNET_TIME_absolute_ntoh (prm->expiration_time),
2339 .put_path = (const struct GNUNET_DHT_PathElement *) &prm[1], 2340 .put_path = (const struct GNUNET_DHT_PathElement *) &prm[1],
2340 .put_path_length = ntohs (prm->put_path_length), 2341 .put_path_length = ntohs (prm->put_path_length),
2342 .key = prm->key,
2341 .type = ntohl (prm->type) 2343 .type = ntohl (prm->type)
2342 }; 2344 };
2343 const struct GNUNET_DHT_PathElement *get_path 2345 const struct GNUNET_DHT_PathElement *get_path