From: Pauli Date: Wed, 10 Mar 2021 08:40:00 +0000 (+1000) Subject: update set_ctx_param store management calls to return 1 for a NULL params X-Git-Tag: openssl-3.0.0-alpha14~302 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8bf611bc7f68ae6480f30e4ef085d141f3a2b884;p=thirdparty%2Fopenssl.git update set_ctx_param store management calls to return 1 for a NULL params Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/14383) --- diff --git a/providers/implementations/storemgmt/file_store.c b/providers/implementations/storemgmt/file_store.c index 1ea820e2a44..f4ac6e0c83f 100644 --- a/providers/implementations/storemgmt/file_store.c +++ b/providers/implementations/storemgmt/file_store.c @@ -326,6 +326,9 @@ static int file_set_ctx_params(void *loaderctx, const OSSL_PARAM params[]) struct file_ctx_st *ctx = loaderctx; const OSSL_PARAM *p; + if (params == NULL) + return 1; + p = OSSL_PARAM_locate_const(params, OSSL_STORE_PARAM_PROPERTIES); if (p != NULL) { OPENSSL_free(ctx->_.file.propq);