]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] One more fix for bloody openssl
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 5 Nov 2016 16:10:58 +0000 (16:10 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 5 Nov 2016 16:10:58 +0000 (16:10 +0000)
src/libcryptobox/cryptobox.c

index 3fceead6681b755efdb42d62496e2f2358fd8ed7..e8bd962b7d66b87b3e1eedbd09caa13cbf4d27da 100644 (file)
@@ -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
        }