Skip to content

Commit 0e25043

Browse files
authored
Merge pull request #1035 from ndossche/clesss-11
pkcs7: fix error check of PKCS7_RECIP_INFO_set()
2 parents 36dd37f + e70a63f commit 0e25043

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/openssl/ossl_pkcs7.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ ossl_pkcs7ri_initialize(VALUE self, VALUE cert)
10551055

10561056
x509 = GetX509CertPtr(cert); /* NO NEED TO DUP */
10571057
GetPKCS7ri(self, p7ri);
1058-
if (!PKCS7_RECIP_INFO_set(p7ri, x509)) {
1058+
if (PKCS7_RECIP_INFO_set(p7ri, x509) <= 0) {
10591059
ossl_raise(ePKCS7Error, NULL);
10601060
}
10611061

0 commit comments

Comments
 (0)