]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
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:17:11 +0000 (20:17 +0100)
Compiler complained.

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

(cherry picked from commit 55e9d8cfffc1a40b0ab72e014ff62d5ef2a0ed63)

test/rsa_test.c

index 11e373cceb1b31673f6b2e9fa5f569efae256bdc..bdbab75f8f4e0e25d732b0b1bf1b5388fa09fa4c 100644 (file)
@@ -304,7 +304,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";