aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/logger.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-29 11:24:43 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-29 11:24:43 +0100
commitc4ccac7afb09784d15a38a27ec1b4c167cb031c5 (patch)
tree6fed6fb64529498175c57190582c975a63d3ec6d /src/libutil/logger.c
parent53632b619666d67d14640b1dc0832b2ab6eb8aa8 (diff)
downloadrspamd-c4ccac7afb09784d15a38a27ec1b4c167cb031c5.tar.gz
rspamd-c4ccac7afb09784d15a38a27ec1b4c167cb031c5.zip
[CritFix] Check NM part of pubkey to match it with rotating keypairs
Diffstat (limited to 'src/libutil/logger.c')
-rw-r--r--src/libutil/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/logger.c b/src/libutil/logger.c
index 99c22390f..bbdc69e97 100644
--- a/src/libutil/logger.c
+++ b/src/libutil/logger.c
@@ -584,7 +584,7 @@ rspamd_log_encrypt_message (const gchar *begin, const gchar *end,
mac = p;
p += rspamd_cryptobox_mac_bytes (RSPAMD_CRYPTOBOX_MODE_25519);
memcpy (p, begin, end - begin);
- comp = rspamd_pubkey_get_nm (rspamd_log->pk);
+ comp = rspamd_pubkey_get_nm (rspamd_log->pk, rspamd_log->keypair);
g_assert (comp != NULL);
rspamd_cryptobox_encrypt_nm_inplace (p, end - begin, nonce, comp, mac,
RSPAMD_CRYPTOBOX_MODE_25519);