Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Unified Diff: net/quic/quic_reliable_client_stream.cc

Issue 372343002: Fix bug in net/quic/quic_reliable_client_stream.cc found by pkastings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_reliable_client_stream.cc
diff --git a/net/quic/quic_reliable_client_stream.cc b/net/quic/quic_reliable_client_stream.cc
index 4eb74d6a31d8382e50b1f3678e318786a8684ac7..79397bc58cb92feccc2f9fae721706927794e3d2 100644
--- a/net/quic/quic_reliable_client_stream.cc
+++ b/net/quic/quic_reliable_client_stream.cc
@@ -27,8 +27,11 @@ QuicReliableClientStream::~QuicReliableClientStream() {
uint32 QuicReliableClientStream::ProcessData(const char* data,
uint32 data_len) {
// TODO(rch): buffer data if we don't have a delegate.
- if (!delegate_)
- return ERR_ABORTED;
+ if (!delegate_) {
+ DLOG(ERROR) << "Missing delegate";
+ Reset(QUIC_STREAM_CANCELLED);
+ return 0;
+ }
int rv = delegate_->OnDataReceived(data, data_len);
if (rv != OK) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698