diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/spdy/spdy_framer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/spdy/spdy_framer.cc b/net/spdy/spdy_framer.cc index 248aa93..50682a8 100644 --- a/net/spdy/spdy_framer.cc +++ b/net/spdy/spdy_framer.cc @@ -424,7 +424,7 @@ size_t SpdyFramer::ProcessDataFramePayload(const char* data, size_t len) { void SpdyFramer::ExpandControlFrameBuffer(size_t size) { size_t alloc_size = size + SpdyFrame::size(); DCHECK_LT(alloc_size, kControlFrameBufferMaxSize); - if (size <= current_frame_capacity_) + if (alloc_size <= current_frame_capacity_) return; char* new_buffer = new char[alloc_size]; memcpy(new_buffer, current_frame_buffer_, current_frame_len_); |