trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject [1/2] trafficserver git commit: TS-3444 Fix background_fetch member initialization
Date Wed, 13 May 2015 19:07:15 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master c6cabce65 -> 225f6b853


TS-3444 Fix background_fetch member initialization


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/225f6b85
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/225f6b85
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/225f6b85

Branch: refs/heads/master
Commit: 225f6b853af467252b00b913a9741f051cab2327
Parents: afe7bca
Author: Leif Hedstrom <zwoop@apache.org>
Authored: Wed May 13 13:06:20 2015 -0600
Committer: Leif Hedstrom <zwoop@apache.org>
Committed: Wed May 13 13:06:45 2015 -0600

----------------------------------------------------------------------
 plugins/experimental/background_fetch/background_fetch.cc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/225f6b85/plugins/experimental/background_fetch/background_fetch.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/background_fetch/background_fetch.cc b/plugins/experimental/background_fetch/background_fetch.cc
index 82227ad..d154e39 100644
--- a/plugins/experimental/background_fetch/background_fetch.cc
+++ b/plugins/experimental/background_fetch/background_fetch.cc
@@ -130,7 +130,13 @@ private:
 // This is necessary, because the TXN is likely to not be available
 // during the time we fetch from origin.
 struct BgFetchData {
-  BgFetchData() : hdr_loc(TS_NULL_MLOC), url_loc(TS_NULL_MLOC), vc(NULL), _bytes(0), _cont(NULL)
{ mbuf = TSMBufferCreate(); }
+  BgFetchData()
+    : hdr_loc(TS_NULL_MLOC), url_loc(TS_NULL_MLOC), vc(NULL), req_io_buf(NULL), resp_io_buf(NULL),
req_io_buf_reader(NULL),
+      resp_io_buf_reader(NULL), r_vio(NULL), w_vio(NULL), _bytes(0), _cont(NULL)
+  {
+    mbuf = TSMBufferCreate();
+    memset(&client_ip, 0, sizeof(client_ip));
+  }
 
   ~BgFetchData()
   {


Mime
View raw message