gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]