mirror of
https://github.com/openssl/openssl.git
synced 2025-03-31 20:10:45 +08:00
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)
This commit is contained in:
parent
20b8dc6fb1
commit
8bf611bc7f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user