We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d8643d commit cea48b4Copy full SHA for cea48b4
1 file changed
ext/openssl/openssl.c
@@ -3373,7 +3373,11 @@ PHP_FUNCTION(openssl_csr_sign)
3373
goto cleanup;
3374
}
3375
} else {
3376
- PHP_OPENSSL_ASN1_INTEGER_set(X509_get_serialNumber(new_cert), serial);
+ if (!PHP_OPENSSL_ASN1_INTEGER_set(X509_get_serialNumber(new_cert), serial)) {
3377
+ php_openssl_store_errors();
3378
+ php_error_docref(NULL, E_WARNING, "Error setting serial number");
3379
+ goto cleanup;
3380
+ }
3381
3382
3383
if (!X509_set_subject_name(new_cert, X509_REQ_get_subject_name(csr))) {
0 commit comments