diff options
author | Pauli <ppzgs1@gmail.com> | 2021-03-10 18:40:00 +1000 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-03-12 08:27:30 +1000 |
commit | 8bf611bc7f68ae6480f30e4ef085d141f3a2b884 (patch) | |
tree | 9083645e8fcc5dd54dc7193b0c25fc983a39fca2 /providers/implementations/storemgmt | |
parent | 20b8dc6fb1964ca16b85799b25c5f46d23b1a7cb (diff) |
update set_ctx_param store management calls to return 1 for a NULL params
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14383)
Diffstat (limited to 'providers/implementations/storemgmt')
-rw-r--r-- | providers/implementations/storemgmt/file_store.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/providers/implementations/storemgmt/file_store.c b/providers/implementations/storemgmt/file_store.c index 1ea820e2a4..f4ac6e0c83 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); |