We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9cbc31 commit fef7741Copy full SHA for fef7741
1 file changed
ext/openssl/openssl.c
@@ -2134,6 +2134,11 @@ PHP_FUNCTION(openssl_x509_parse)
2134
2135
subject_name = X509_get_subject_name(cert);
2136
cert_name = X509_NAME_oneline(subject_name, NULL, 0);
2137
+ if (cert_name == NULL) {
2138
+ php_openssl_store_errors();
2139
+ goto err;
2140
+ }
2141
+
2142
add_assoc_string(return_value, "name", cert_name);
2143
OPENSSL_free(cert_name);
2144
0 commit comments