We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94853b6 commit fd61270Copy full SHA for fd61270
ext/openssl/openssl.c
@@ -1569,9 +1569,11 @@ PHP_FUNCTION(openssl_x509_export_to_file)
1569
if (bio_out) {
1570
if (!notext && !X509_print(bio_out, cert)) {
1571
php_openssl_store_errors();
1572
+ goto exit_cleanup_bio;
1573
}
1574
if (!PEM_write_bio_X509(bio_out, cert)) {
1575
1576
1577
1578
1579
RETVAL_TRUE;
@@ -1580,6 +1582,7 @@ PHP_FUNCTION(openssl_x509_export_to_file)
1580
1582
php_error_docref(NULL, E_WARNING, "Error opening file %s", file_path);
1581
1583
1584
1585
+exit_cleanup_bio:
1586
if (!BIO_free(bio_out)) {
1587
1588
0 commit comments