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 2020/07/23 21:24:10 UTC

[trafficserver] 01/03: Fix a compile warning

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

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

commit adef059e0de5dd4073e1d5b8d3d0464f9499161d
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Fri Mar 6 11:35:02 2020 +0900

    Fix a compile warning
    
    (cherry picked from commit d9f647ca7c15d0eb4687fa59706ab246f49ece1b)
---
 iocore/net/quic/QUICTLS_boringssl.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/iocore/net/quic/QUICTLS_boringssl.cc b/iocore/net/quic/QUICTLS_boringssl.cc
index a535e79..c46b5f2 100644
--- a/iocore/net/quic/QUICTLS_boringssl.cc
+++ b/iocore/net/quic/QUICTLS_boringssl.cc
@@ -60,10 +60,9 @@ int
 QUICTLS::_read_early_data()
 {
   uint8_t early_data[8];
-  size_t early_data_len = 0;
   do {
     ERR_clear_error();
-    early_data_len = SSL_read(this->_ssl, early_data, sizeof(early_data));
+    SSL_read(this->_ssl, early_data, sizeof(early_data));
   } while (SSL_in_early_data(this->_ssl));
 
   return 1;