Commit:    b7f033bd5de844e7cf0f1f7c2b884d582d4aa847
Author:    Stanislav Malyshev <s...@php.net>         Mon, 19 Aug 2013 01:02:12 
-0700
Parents:   29b4532f618973b80b6b7017b44139995dce697c
Branches:  PHP-5.5.3

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=b7f033bd5de844e7cf0f1f7c2b884d582d4aa847

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 4c3b2ec..98f3813 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -1587,6 +1587,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

Reply via email to