We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3053a03 commit 4bc5de3Copy full SHA for 4bc5de3
1 file changed
ext/openssl/openssl.c
@@ -3367,7 +3367,10 @@ PHP_FUNCTION(openssl_csr_sign)
3367
PHP_OPENSSL_ASN1_INTEGER_set(X509_get_serialNumber(new_cert), serial);
3368
}
3369
3370
- 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))) {
3371
+ php_openssl_store_errors();
3372
+ goto cleanup;
3373
+ }
3374
3375
if (cert == NULL) {
3376
cert = new_cert;
0 commit comments