From d29a3dc66b6a7ed24d2eef0e87f8b8d54701e086 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 5 Nov 2016 16:10:58 +0000 Subject: [PATCH] [Minor] One more fix for bloody openssl --- 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 3fceead66..e8bd962b7 100644 --- a/src/libcryptobox/cryptobox.c +++ b/src/libcryptobox/cryptobox.c @@ -571,7 +571,7 @@ rspamd_cryptobox_encrypt_ctx_len (enum rspamd_cryptobox_mode mode) #ifndef HAVE_USABLE_OPENSSL g_assert (0); #else - return sizeof (EVP_CIPHER_CTX) + CRYPTOBOX_ALIGNMENT; + return sizeof (EVP_CIPHER_CTX *) + CRYPTOBOX_ALIGNMENT; #endif } -- 2.39.5