Commit: 66606b8462e7daef68f5a21bdebe20f288dfd49f Author: Stanislav Malyshev <s...@php.net> Mon, 19 Aug 2013 01:02:12 -0700 Parents: 0780256c196a8a32f104a804b2d6eb029ccafa6a Branches: PHP-5.4.19
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=66606b8462e7daef68f5a21bdebe20f288dfd49f Log: fix using wrong buffer pointer Changed paths: M ext/openssl/openssl.c Diff: diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index c32748c..7070177 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1574,6 +1574,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); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php