diff options
author | Pauli <paul.dale@oracle.com> | 2020-04-27 08:57:38 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-04-30 20:21:32 +1000 |
commit | 70e18f9dcefdf6c276531159de433f09d4179178 (patch) | |
tree | 793e0526c5fc531add698e1f6c9be5956d760c91 | |
parent | 2a4ad6a5d48de69b7f8b2b07c99d1f6c510c569c (diff) |
coverity 1462561 Uninitialized scalar variable
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11651)
-rw-r--r-- | crypto/rsa/rsa_gen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rsa/rsa_gen.c b/crypto/rsa/rsa_gen.c index 3d5a32a0a1..5712aa1791 100644 --- a/crypto/rsa/rsa_gen.c +++ b/crypto/rsa/rsa_gen.c @@ -463,7 +463,7 @@ static int rsa_keygen_pairwise_test(RSA *rsa, OSSL_CALLBACK *cb, void *cbarg) if (ciphertxt_len <= 0) goto err; if (ciphertxt_len == plaintxt_len - && memcmp(decoded, plaintxt, plaintxt_len) == 0) + && memcmp(ciphertxt, plaintxt, plaintxt_len) == 0) goto err; OSSL_SELF_TEST_oncorrupt_byte(st, ciphertxt); |