]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fill nm id in keypairs cache code
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 29 Jun 2018 10:56:44 +0000 (11:56 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 29 Jun 2018 10:56:44 +0000 (11:56 +0100)
src/libcryptobox/keypairs_cache.c

index 1763407122efec85927a67e74ac0f90699e2e683..5e3a13e1809d0ab87adf91a4f2ff9073ff9af68a 100644 (file)
@@ -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 =