TEST: Add missing initialization
authorRichard Levitte <levitte@openssl.org>
Tue, 16 Feb 2021 19:02:24 +0000 (20:02 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 16 Feb 2021 19:02:24 +0000 (20:02 +0100)
Compiler complained.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14204)

test/rsa_test.c

index f52053bda1f912c73d5c8882a9adf7f5c9b880eb..095cddd8aa42e46c163e8221e0d20ab616c8d44b 100644 (file)
@@ -303,7 +303,7 @@ static int test_rsa_sslv23(int idx)
 static int test_rsa_oaep(int idx)
 {
     int ret = 0;
-    RSA *key;
+    RSA *key = NULL;
     unsigned char ptext[256];
     unsigned char ctext[256];
     static unsigned char ptext_ex[] = "\x54\x85\x9b\x34\x2c\x49\xea\x2a";