From: Stanislav Malyshev Date: Mon, 19 Aug 2013 08:02:12 +0000 (-0700) Subject: fix using wrong buffer pointer X-Git-Tag: php-5.3.28~2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1c49d6e3983c9ce0b43ffe7bf6e03b809ed048b;p=php fix using wrong buffer pointer --- diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index c7a9f5c181..e7672e4a34 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1502,6 +1502,7 @@ PHP_FUNCTION(openssl_x509_parse) bio_out = BIO_new(BIO_s_mem()); if (nid == NID_subject_alt_name) { if (openssl_x509v3_subjectAltName(bio_out, extension) == 0) { + BIO_get_mem_ptr(bio_out, &bio_buf); add_assoc_stringl(subitem, extname, bio_buf->data, bio_buf->length, 1); } else { zval_dtor(return_value);