diff options
Diffstat (limited to 'providers/implementations/rands/test_rng.c')
-rw-r--r-- | providers/implementations/rands/test_rng.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/providers/implementations/rands/test_rng.c b/providers/implementations/rands/test_rng.c index 1335de8681..bdad7ac9ac 100644 --- a/providers/implementations/rands/test_rng.c +++ b/providers/implementations/rands/test_rng.c @@ -183,6 +183,9 @@ static int test_rng_set_ctx_params(void *vtest, const OSSL_PARAM params[]) void *ptr = NULL; size_t size = 0; + if (params == NULL) + return 1; + p = OSSL_PARAM_locate_const(params, OSSL_RAND_PARAM_STRENGTH); if (p != NULL && !OSSL_PARAM_get_uint(p, &t->strength)) return 0; |