diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2019-09-18 15:20:30 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2019-09-18 15:20:30 +1000 |
commit | 793374c82abd3215ec33d989810214a871849eda (patch) | |
tree | 6cf818d8653e8c5d6c57365a3f88625cda326a78 /providers | |
parent | d5d32e784dd2ac25b3c773893f94484bcda5a23d (diff) |
Fix Coverity CID:1453685 'unreachable code' in aes_xts code.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/9902)
Diffstat (limited to 'providers')
-rw-r--r-- | providers/common/ciphers/cipher_aes_xts.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/providers/common/ciphers/cipher_aes_xts.c b/providers/common/ciphers/cipher_aes_xts.c index c85475442b..0d642368b3 100644 --- a/providers/common/ciphers/cipher_aes_xts.c +++ b/providers/common/ciphers/cipher_aes_xts.c @@ -176,7 +176,6 @@ static int aes_xts_cipher(void *vctx, unsigned char *out, size_t *outl, else if (CRYPTO_xts128_encrypt(&ctx->xts, ctx->base.iv, in, out, inl, ctx->base.enc)) return 0; - return 1; *outl = inl; return 1; @@ -198,7 +197,6 @@ static int aes_xts_stream_update(void *vctx, unsigned char *out, size_t *outl, return 0; } - *outl = inl; return 1; } |