coverity Logically dead code
@@ -385,7 +385,7 @@ int cms_RecipientInfo_kari_init(CMS_RecipientInfo *ri, X509 *recip, EVP_PKEY *r
/* Use originator key */
CMS_OriginatorIdentifierOrKey *oik = ri->d.kari->originator;
- if (originatorPrivKey == NULL && originator == NULL)
+ if (originatorPrivKey == NULL || originator == NULL)
return 0;
if (flags & CMS_USE_ORIGINATOR_KEYID) {
