diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-16 13:44:35 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-16 13:44:35 +0000 |
commit | 3256178a2433f242f69c55f6eaee36ea314b2f1a (patch) | |
tree | 69323a953a69d4d62c9c57e695c6f84ac9527bb8 /src/libcryptobox | |
parent | 5c25ee027e883ea5251958ecee14ea5fc3e68946 (diff) | |
download | rspamd-3256178a2433f242f69c55f6eaee36ea314b2f1a.tar.gz rspamd-3256178a2433f242f69c55f6eaee36ea314b2f1a.zip |
Fix couple of issues found by gcc-6
Diffstat (limited to 'src/libcryptobox')
-rw-r--r-- | src/libcryptobox/cryptobox.c | 2 |
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) { |