summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcryptobox/keypairs_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcryptobox/keypairs_cache.c b/src/libcryptobox/keypairs_cache.c
index 176340712..5e3a13e18 100644
--- a/src/libcryptobox/keypairs_cache.c
+++ b/src/libcryptobox/keypairs_cache.c
@@ -105,6 +105,7 @@ rspamd_keypair_cache_process (struct rspamd_keypair_cache *c,
memcpy (new->pair, rk->id, rspamd_cryptobox_HASHBYTES);
memcpy (&new->pair[rspamd_cryptobox_HASHBYTES], lk->id,
rspamd_cryptobox_HASHBYTES);
+ memcpy (&new->nm->sk_id, lk->id, sizeof (guint64));
if (rk->alg == RSPAMD_CRYPTOBOX_MODE_25519) {
struct rspamd_cryptobox_pubkey_25519 *rk_25519 =