summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2018-05-22 13:34:42 +0100
committerMatt Caswell <matt@openssl.org>2018-05-23 15:13:23 +0100
commitd8908c3310240bb0efd9b17c663a8b9e47bf31dc (patch)
tree2cc7517a61233fb08c2cf94964fa59272583f3f5 /crypto
parentf2bb6b8d81944261f65e3231f6eb707a9185162a (diff)
Fix a bogus warning about an uninitialised var
The variable in question can never be used uninitialised, but we silence the compiler anyway. Fixes #6301 Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6329)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/rsa/rsa_oaep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rsa/rsa_oaep.c b/crypto/rsa/rsa_oaep.c
index 9a01b4afc1..9def7a0467 100644
--- a/crypto/rsa/rsa_oaep.c
+++ b/crypto/rsa/rsa_oaep.c
@@ -120,7 +120,7 @@ int RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen,
int plen, const EVP_MD *md,
const EVP_MD *mgf1md)
{
- int i, dblen, mlen = -1, one_index = 0, msg_index;
+ int i, dblen = 0, mlen = -1, one_index = 0, msg_index;
unsigned int good, found_one_byte;
const unsigned char *maskedseed, *maskeddb;
/*