We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c11370 commit 8b031eaCopy full SHA for 8b031ea
1 file changed
ext/openssl/openssl.c
@@ -3376,7 +3376,10 @@ PHP_FUNCTION(openssl_csr_sign)
3376
PHP_OPENSSL_ASN1_INTEGER_set(X509_get_serialNumber(new_cert), serial);
3377
}
3378
3379
- X509_set_subject_name(new_cert, X509_REQ_get_subject_name(csr));
+ if (!X509_set_subject_name(new_cert, X509_REQ_get_subject_name(csr))) {
3380
+ php_openssl_store_errors();
3381
+ goto cleanup;
3382
+ }
3383
3384
if (cert == NULL) {
3385
cert = new_cert;
0 commit comments