Skip to content

Commit c1c49d6

Browse files
committed
fix using wrong buffer pointer
1 parent dcea4ec commit c1c49d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/openssl/openssl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,7 @@ PHP_FUNCTION(openssl_x509_parse)
15021502
bio_out = BIO_new(BIO_s_mem());
15031503
if (nid == NID_subject_alt_name) {
15041504
if (openssl_x509v3_subjectAltName(bio_out, extension) == 0) {
1505+
BIO_get_mem_ptr(bio_out, &bio_buf);
15051506
add_assoc_stringl(subitem, extname, bio_buf->data, bio_buf->length, 1);
15061507
} else {
15071508
zval_dtor(return_value);

0 commit comments

Comments
 (0)