diff options
Diffstat (limited to 'apps/cms.c')
-rw-r--r-- | apps/cms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/cms.c b/apps/cms.c index dce227ef2db5..185396ca7b38 100644 --- a/apps/cms.c +++ b/apps/cms.c @@ -983,7 +983,7 @@ int cms_main(int argc, char **argv) goto end; pctx = CMS_RecipientInfo_get0_pkey_ctx(ri); - if (kparam != NULL) { + if (pctx != NULL && kparam != NULL) { if (!cms_set_pkey_param(pctx, kparam->param)) goto end; } |