[TS-3735]: Coverity CID 1309077 - Control flow issues.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/ee446f9c Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/ee446f9c Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/ee446f9c Branch: refs/heads/master Commit: ee446f9c42ece4bb0e6a7fe4a08d17f367a0a352 Parents: 785439f Author: Sudheer Vinukonda <[email protected]> Authored: Thu Jul 2 15:30:57 2015 +0000 Committer: Sudheer Vinukonda <[email protected]> Committed: Thu Jul 2 15:30:57 2015 +0000 ---------------------------------------------------------------------- proxy/http/HttpSM.cc | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ee446f9c/proxy/http/HttpSM.cc ---------------------------------------------------------------------- diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc index 1694e31..cbcc34b 100644 --- a/proxy/http/HttpSM.cc +++ b/proxy/http/HttpSM.cc @@ -582,6 +582,9 @@ HttpSM::state_read_client_request_header(int event, void *data) case VC_EVENT_EOS: ua_entry->eos = true; + if ((client_request_hdr_bytes > 0) && is_transparent_passthrough_allowed() && (ua_raw_buffer_reader != NULL)) { + break; + } // Fall through case VC_EVENT_ERROR: case VC_EVENT_INACTIVITY_TIMEOUT:
