aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-29 11:56:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-29 11:56:44 +0100
commitd3e603be38f2b7fe53788c7209b8aa6c7e58cb44 (patch)
tree98f15d2538ea075f4b74ccdae59395464f43a4a8 /src/libcryptobox
parentb469b2e99f457da4ccd25f4af7531fa7c1f309ec (diff)
downloadrspamd-d3e603be38f2b7fe53788c7209b8aa6c7e58cb44.tar.gz
rspamd-d3e603be38f2b7fe53788c7209b8aa6c7e58cb44.zip
[Fix] Fill nm id in keypairs cache code
Diffstat (limited to 'src/libcryptobox')
-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 =