RT3246: req command prints version number wrong
[oweals/openssl.git] / crypto / cms / cms_lib.c
index 268278014c5820423e86a8775388d4a136e736da..0a8200cc38f3601a116e73878fe55a08a6144a0e 100644 (file)
@@ -448,8 +448,6 @@ int CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert)
        STACK_OF(CMS_CertificateChoices) **pcerts;
        int i;
        pcerts = cms_get0_certificate_choices(cms);
-       if (!pcerts)
-               return 0;
        if (!pcerts)
                return 0;
        for (i = 0; i < sk_CMS_CertificateChoices_num(*pcerts); i++)