[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 20/20: -fix assertion, fix key initialization
From: |
gnunet |
Subject: |
[gnunet] 20/20: -fix assertion, fix key initialization |
Date: |
Sat, 19 Feb 2022 16:21:00 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit d68731944ec84c09c1841580c6adc3e40ef7e397
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Feb 19 16:20:25 2022 +0100
-fix assertion, fix key initialization
---
src/dht/gnunet-service-dht_neighbours.c | 8 +++++---
1 file 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,
GNUNET_memcmp (&pp[i].pred,
&pp[j].pred));
}
- GNUNET_break (0 !=
- GNUNET_memcmp (&pp[i].pred,
- &peer->id));
+ if (i < putlen)
+ GNUNET_break (0 !=
+ GNUNET_memcmp (&pp[i].pred,
+ &peer->id));
}
if (0 !=
GNUNET_DHT_verify_path (&bd.key,
@@ -2338,6 +2339,7 @@ handle_dht_p2p_result (void *cls,
.expiration_time = GNUNET_TIME_absolute_ntoh (prm->expiration_time),
.put_path = (const struct GNUNET_DHT_PathElement *) &prm[1],
.put_path_length = ntohs (prm->put_path_length),
+ .key = prm->key,
.type = ntohl (prm->type)
};
const struct GNUNET_DHT_PathElement *get_path
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] 03/20: incomplete first hack of new hello-uri lib, (continued)
- [gnunet] 03/20: incomplete first hack of new hello-uri lib, gnunet, 2022/02/19
- [gnunet] 01/20: first steps towards usable dhtu, gnunet, 2022/02/19
- [gnunet] 04/20: -conclude hello-uri implementation and test, gnunet, 2022/02/19
- [gnunet] 09/20: -DHT now takes care of queue size limit, gnunet, 2022/02/19
- [gnunet] 07/20: -more work on DHTU integration, gnunet, 2022/02/19
- [gnunet] 08/20: rebase, gnunet, 2022/02/19
- [gnunet] 13/20: -fix port initialization in addr, gnunet, 2022/02/19
- [gnunet] 11/20: -DHT: add gnunet-dht-hello for bootstrapping, gnunet, 2022/02/19
- [gnunet] 16/20: -got basics to work with dhtu and udp+ip underlay, gnunet, 2022/02/19
- [gnunet] 18/20: -fix merge issues, gnunet, 2022/02/19
- [gnunet] 20/20: -fix assertion, fix key initialization,
gnunet <=
- [gnunet] 17/20: -try to make static analysis happy, gnunet, 2022/02/19
- [gnunet] 15/20: -adding logging, minor dthu bugfixes, gnunet, 2022/02/19
- [gnunet] 19/20: -fix htons/htonl bug introduced by message format change, gnunet, 2022/02/19
- [gnunet] 12/20: -fix crashes on new DHT load/shutdown, gnunet, 2022/02/19
- [gnunet] 10/20: -add hold/drop logic, gnunet, 2022/02/19
- [gnunet] 06/20: -implement TVG, gnunet, 2022/02/19
- [gnunet] 05/20: add new HELLO_URI block support to block plugin, gnunet, 2022/02/19
- [gnunet] 14/20: -DHT: get tests to pass, gnunet, 2022/02/19