trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject trafficserver git commit: TS-3843: Remove unnecessary null check
Date Sat, 14 Nov 2015 20:33:01 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 7b467783d -> fc77df964


TS-3843: Remove unnecessary null check

This closes #332


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

Branch: refs/heads/master
Commit: fc77df9647b6194e8f90510bfaecc89e8d732ea5
Parents: 7b46778
Author: Masakazu Kitajo <mkitajou@yahoo-corp.jp>
Authored: Sat Nov 14 12:32:33 2015 -0800
Committer: Bryan Call <bcall@apache.org>
Committed: Sat Nov 14 12:32:33 2015 -0800

----------------------------------------------------------------------
 proxy/http2/Http2ConnectionState.cc | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/fc77df96/proxy/http2/Http2ConnectionState.cc
----------------------------------------------------------------------
diff --git a/proxy/http2/Http2ConnectionState.cc b/proxy/http2/Http2ConnectionState.cc
index 54e97f8..39d21f6 100644
--- a/proxy/http2/Http2ConnectionState.cc
+++ b/proxy/http2/Http2ConnectionState.cc
@@ -628,10 +628,6 @@ rcv_continuation_frame(Http2ClientSession &cs, Http2ConnectionState
&cstate, con
     return Http2Error(HTTP2_ERROR_CLASS_CONNECTION, HTTP2_ERROR_PROTOCOL_ERROR);
   }
 
-  if (!stream->header_blocks) {
-    return Http2Error(HTTP2_ERROR_CLASS_CONNECTION, HTTP2_ERROR_PROTOCOL_ERROR);
-  }
-
   uint32_t header_blocks_offset = stream->header_blocks_length;
   stream->header_blocks_length += payload_length;
 


Mime
View raw message