fake_rand_finish should be called if "OPENSSL_NO_SM2" is NOT defined
authorArmin Fuerst <armin@fuerst.priv.at>
Mon, 8 Mar 2021 20:14:50 +0000 (21:14 +0100)
committerArmin Fuerst <armin@fuerst.priv.at>
Mon, 8 Mar 2021 20:14:50 +0000 (21:14 +0100)
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14471)

test/sm2_internal_test.c

index 6b80611dd287fa6305d9e5a5f6c29e67b81df7fb..72a7baaeff7e456e91f0bb37b495b5cda513f0b2 100644 (file)
@@ -381,7 +381,7 @@ int setup_tests(void)
 
 void cleanup_tests(void)
 {
-#ifdef OPENSSL_NO_SM2
+#ifndef OPENSSL_NO_SM2
     fake_rand_finish(fake_rand);
 #endif
 }