We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 556ec77 commit f6887f0Copy full SHA for f6887f0
1 file changed
ext/openssl/openssl.c
@@ -6464,7 +6464,10 @@ PHP_FUNCTION(openssl_cms_encrypt)
6464
goto clean_exit;
6465
}
6466
6467
- sk_X509_push(recipcerts, cert);
+ if (sk_X509_push(recipcerts, cert) <= 0) {
6468
+ php_openssl_store_errors();
6469
+ goto clean_exit;
6470
+ }
6471
} ZEND_HASH_FOREACH_END();
6472
} else {
6473
/* a single certificate */
@@ -6484,7 +6487,10 @@ PHP_FUNCTION(openssl_cms_encrypt)
6484
6487
6485
6488
6486
6489
6490
6491
6492
6493
6494
6495
6496
/* sanity check the cipher */
0 commit comments