aboutsummaryrefslogtreecommitdiff
path: root/src/gnsrecord
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-26 15:39:50 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-26 15:39:50 +0200
commit1b21e0b643f37675683b09b9e528721cb7df74e5 (patch)
treefaec39247d6a83f93d289190e2e37ba98b6159ae /src/gnsrecord
parentc15e7951180d954ca584a95206543e8997b3a7d4 (diff)
downloadgnunet-1b21e0b643f37675683b09b9e528721cb7df74e5.tar.gz
gnunet-1b21e0b643f37675683b09b9e528721cb7df74e5.zip
misc bugfixes
Diffstat (limited to 'src/gnsrecord')
-rw-r--r--src/gnsrecord/gnsrecord_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gnsrecord/gnsrecord_crypto.c b/src/gnsrecord/gnsrecord_crypto.c
index 27c83b90e..d9fe2ae40 100644
--- a/src/gnsrecord/gnsrecord_crypto.c
+++ b/src/gnsrecord/gnsrecord_crypto.c
@@ -236,7 +236,7 @@ GNUNET_GNSRECORD_block_create2 (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key,
236 static struct KeyCacheLine cache[CSIZE]; 236 static struct KeyCacheLine cache[CSIZE];
237 struct KeyCacheLine *line; 237 struct KeyCacheLine *line;
238 238
239 line = &cache[(*(unsigned int *) key) ^ CSIZE]; 239 line = &cache[(*(unsigned int *) key) % CSIZE];
240 if (0 != memcmp (&line->key, 240 if (0 != memcmp (&line->key,
241 key, 241 key,
242 sizeof (*key))) 242 sizeof (*key)))