We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01d598a commit ef54becCopy full SHA for ef54bec
1 file changed
ext/openssl/openssl.c
@@ -2684,6 +2684,9 @@ PHP_FUNCTION(openssl_pkcs12_export_to_file)
2684
2685
if (args && (item = zend_hash_str_find(Z_ARRVAL_P(args), "extracerts", sizeof("extracerts")-1)) != NULL) {
2686
ca = php_array_to_X509_sk(item, 5, "extracerts");
2687
+ if (!ca) {
2688
+ goto cleanup;
2689
+ }
2690
}
2691
/* end parse extra config */
2692
@@ -2777,6 +2780,9 @@ PHP_FUNCTION(openssl_pkcs12_export)
2777
2780
2778
2781
2779
2782
2783
2784
2785
2786
2787
2788
0 commit comments