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