From 70f5318d0a8b8cc55465dd4a9875383a8d710adf Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 22 Mar 2016 15:35:43 +0000 Subject: [PATCH] [Fix] Fixed cryptobox cleanup --- src/libcryptobox/cryptobox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5