aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/cryptobox.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-22 15:35:43 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-22 15:36:00 +0000
commit70f5318d0a8b8cc55465dd4a9875383a8d710adf (patch)
tree82d9e7dc07262f7d687aab1d45fab967901b4f2b /src/libcryptobox/cryptobox.c
parent9e46cd6155df62a374d050a6b0ce3f66d16cf863 (diff)
downloadrspamd-70f5318d0a8b8cc55465dd4a9875383a8d710adf.tar.gz
rspamd-70f5318d0a8b8cc55465dd4a9875383a8d710adf.zip
[Fix] Fixed cryptobox cleanup
Diffstat (limited to 'src/libcryptobox/cryptobox.c')
-rw-r--r--src/libcryptobox/cryptobox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c
index e5c311268..88da5b35f 100644
--- a/src/libcryptobox/cryptobox.c
+++ b/src/libcryptobox/cryptobox.c
@@ -945,7 +945,7 @@ static void
rspamd_cryptobox_cleanup (void *enc_ctx, void *auth_ctx,
enum rspamd_cryptobox_mode mode)
{
- if (G_LIKELY (RSPAMD_CRYPTOBOX_MODE_25519)) {
+ if (G_LIKELY (mode == RSPAMD_CRYPTOBOX_MODE_25519)) {
rspamd_explicit_memzero (auth_ctx, sizeof (poly1305_state));
}
else {