]> 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)
committerPauli <ppzgs1@gmail.com>
Sun, 18 Aug 2024 22:31:15 +0000 (08:31 +1000)
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)

test/provider_internal_test.c

index 9998e6bf973fa6804ee9760e0bfdd578e3ab026b..e4cc354f228965a9352ebdb8161cfdade04d34fc 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 =