com php-src: fix using wrong buffer pointer: ext/openssl/openssl.c

From: Date: Tue, 20 Aug 2013 04:35:05 +0000
Subject: com php-src: fix using wrong buffer pointer: ext/openssl/openssl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73017@lists.php.net to get a copy of this message
Commit: 66606b8462e7daef68f5a21bdebe20f288dfd49f Author: Stanislav Malyshev <stas@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);

« previous php.cvs (#73017) next »