You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2017/05/03 14:04:13 UTC

[trafficserver] 03/03: The Brotli buffer pointer is was not being set to a default value

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 4d3a55a2508c90540f646755e8a291f8aad9b41f
Author: Bryan Call <bc...@apache.org>
AuthorDate: Tue May 2 17:22:17 2017 -0700

    The Brotli buffer pointer is was not being set to a default value
    
    (cherry picked from commit de9a9586cbb3648b7a6c8c5d080f7f041a21d446)
---
 plugins/gzip/gzip.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugins/gzip/gzip.cc b/plugins/gzip/gzip.cc
index 64ac2e2..77a477a 100644
--- a/plugins/gzip/gzip.cc
+++ b/plugins/gzip/gzip.cc
@@ -109,6 +109,7 @@ data_alloc(int compression_type, int compression_algorithms)
     }
   }
 #if HAVE_BROTLI_ENCODE_H
+  data->bstrm.br = nullptr;
   if (compression_type & COMPRESSION_TYPE_BROTLI) {
     debug("gzip-transform: brotli compression. Create Brotli Encoder Instance.");
     data->bstrm.br = BrotliEncoderCreateInstance(0, 0, 0);

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.