]> granicus.if.org Git - php/commitdiff
fix using wrong buffer pointer
authorStanislav Malyshev <stas@php.net>
Mon, 19 Aug 2013 08:02:12 +0000 (01:02 -0700)
committerStanislav Malyshev <stas@php.net>
Mon, 19 Aug 2013 08:02:12 +0000 (01:02 -0700)
ext/openssl/openssl.c

index c7a9f5c181541425c60487436b3495e6fee7e693..e7672e4a34c0169d4f333350e1696004b92bba8b 100644 (file)
@@ -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);