Commit 68d0b06a authored by Chris Mumford's avatar Chris Mumford Committed by Commit Bot

Clear ChunkedDataPipeUploadDataStream buffer length.

When clearing ChunkedDataPipeUploadDataStream::buf_ also set
ChunkedDataPipeUploadDataStream::buf_len_ to zero as it signifies
the length of buf_ which is now gone.

Bug: None
Change-Id: I470b46fcb5cd0615e1841780e3c9744763c85265
Reviewed-on: https://chromium-review.googlesource.com/c/1333657Reviewed-by: default avatarKen Rockot <rockot@google.com>
Commit-Queue: Chris Mumford <cmumford@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607693}
parent ab0f182e
......@@ -164,6 +164,7 @@ void ChunkedDataPipeUploadDataStream::OnSizeReceived(int32_t status,
data_pipe_.reset();
// Clear |buf_| as well, so it's only non-null while there's a pending read.
buf_ = nullptr;
buf_len_ = 0;
OnReadCompleted(status_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment