From: Vsevolod Stakhov Date: Sat, 5 Nov 2016 16:10:58 +0000 (+0000) Subject: [Minor] One more fix for bloody openssl X-Git-Tag: 1.4.0~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d29a3dc66b6a7ed24d2eef0e87f8b8d54701e086;p=thirdparty%2Frspamd.git [Minor] One more fix for bloody openssl --- diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c index 3fceead668..e8bd962b7d 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 }