]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
test: add a default greeting to avoid printing a null pointer.
authorPauli <ppzgs1@gmail.com>
Sun, 18 Aug 2024 22:31:15 +0000 (08:31 +1000)
committerTomas Mraz <tomas@openssl.org>
Mon, 19 Aug 2024 09:21:55 +0000 (11:21 +0200)
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
(Merged from https://github.com/openssl/openssl/pull/25221)

(cherry picked from commit 34877dbcd467efb4e2dbf45d2fcb44c5a4b4926a)

test/provider_internal_test.c

index 1fe8fb0cc5c4123f7ab3773a0a7ab26fefa43dee..cbbcb7799eac533719ca2ca4c166d7c598dcd665 100644 (file)
@@ -22,7 +22,7 @@ static OSSL_PARAM greeting_request[] = {
 
 static int test_provider(OSSL_PROVIDER *prov, const char *expected_greeting)
 {
-    const char *greeting = NULL;
+    const char *greeting = "no greeting received";
     int ret = 0;
 
     ret =