You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ni...@apache.org on 2015/07/05 12:28:37 UTC

trafficserver git commit: stream-editor: Initialise nbytes in final call to process_block().

Repository: trafficserver
Updated Branches:
  refs/heads/master 9a24e93c5 -> d0f908da3


stream-editor: Initialise nbytes in final call to process_block().


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

Branch: refs/heads/master
Commit: d0f908da33aa91e99b5d8167d8c950df668844aa
Parents: 9a24e93
Author: Nick Kew <nk...@qualys.com>
Authored: Sun Jul 5 11:26:46 2015 +0100
Committer: Nick Kew <nk...@qualys.com>
Committed: Sun Jul 5 11:26:46 2015 +0100

----------------------------------------------------------------------
 plugins/experimental/stream_editor/stream_editor.cc | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d0f908da/plugins/experimental/stream_editor/stream_editor.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/stream_editor/stream_editor.cc b/plugins/experimental/stream_editor/stream_editor.cc
index 97ef1a9..743cf15 100644
--- a/plugins/experimental/stream_editor/stream_editor.cc
+++ b/plugins/experimental/stream_editor/stream_editor.cc
@@ -587,6 +587,7 @@ process_block(contdata_t *contdata, TSIOBufferReader reader)
     keep = 0;
     buf = contdata->contbuf.c_str();
     buflen = contdata->contbuf.length();
+    nbytes = 0;
   } else {
     block = TSIOBufferReaderStart(reader);
     buf = TSIOBufferBlockReadStart(block, reader, &nbytes);