aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcryptobox')
-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 fe2cff29e..1085906de 100644
--- a/src/libcryptobox/cryptobox.c
+++ b/src/libcryptobox/cryptobox.c
@@ -676,7 +676,7 @@ rspamd_cryptobox_encrypt_update (void *enc_ctx, const guchar *in, gsize inlen,
EVP_CIPHER_CTX *s = enc_ctx;
gint r;
- r = outlen ? *outlen : inlen;
+ r = inlen;
g_assert (EVP_EncryptUpdate (s, out, &r, in, inlen) == 1);
if (outlen) {