aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/keypairs_cache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-13 12:26:01 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-13 12:26:01 +0100
commit16c229e069e0b28f463484b2e894471b95ccd3a6 (patch)
tree80b6f1d9bfad91a5d32860c342b926fc38fdeee5 /src/libutil/keypairs_cache.c
parent4b086742e69fdeb4d066521e4bf9f9ffd71c1eb0 (diff)
downloadrspamd-16c229e069e0b28f463484b2e894471b95ccd3a6.tar.gz
rspamd-16c229e069e0b28f463484b2e894471b95ccd3a6.zip
Store NM between encrypt/decrypt.
Diffstat (limited to 'src/libutil/keypairs_cache.c')
-rw-r--r--src/libutil/keypairs_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/keypairs_cache.c b/src/libutil/keypairs_cache.c
index c10c6959d..eb9b5215c 100644
--- a/src/libutil/keypairs_cache.c
+++ b/src/libutil/keypairs_cache.c
@@ -107,6 +107,7 @@ rspamd_keypair_cache_process (struct rspamd_keypair_cache *c,
g_assert (new != NULL);
memcpy (kp_remote->nm, new->nm, rspamd_cryptobox_NMBYTES);
+ kp_remote->has_nm = TRUE;
#if 0
memcpy (kp_local->nm, new->nm, rspamd_cryptobox_NMBYTES);
#endif