gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: fixes


From: gnunet
Subject: [gnunet] branch master updated: fixes
Date: Thu, 21 Jan 2021 12:58:46 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new b7abb3a11 fixes
b7abb3a11 is described below

commit b7abb3a11f1b8252945fab43c4575741fa90143b
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Jan 21 12:57:51 2021 +0100

    fixes
---
 src/setu/gnunet-service-setu.c | 3 ++-
 src/setu/ibf.c                 | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c
index e7f27bd7d..e5d8751f2 100644
--- a/src/setu/gnunet-service-setu.c
+++ b/src/setu/gnunet-service-setu.c
@@ -1000,7 +1000,8 @@ op_register_element (struct Operation *op,
 
 
 /**
- * FIXME.
+ * Modify an IBF key @a k_in based on the @a salt, returning a
+ * salted key in @a k_out.
  */
 static void
 salt_key (const struct IBF_Key *k_in,
diff --git a/src/setu/ibf.c b/src/setu/ibf.c
index 565adbbf0..79b4f28db 100644
--- a/src/setu/ibf.c
+++ b/src/setu/ibf.c
@@ -129,10 +129,10 @@ ibf_get_indices (const struct InvertibleBloomFilter *ibf,
     uint64_t x;
 
     for (unsigned int j = 0; j < filled; j++)
-      if (dst[j] == bucket)
+      if (dst[j] == bucket % ibf->size)
         goto try_next;
     dst[filled++] = bucket % ibf->size;
-try_next:;
+try_next:
     x = ((uint64_t) bucket << 32) | i;
     bucket = GNUNET_CRYPTO_crc32_n (&x, sizeof x);
   }

-- 
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]