You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by su...@apache.org on 2015/01/23 17:35:12 UTC
[3/3] trafficserver git commit: [TS-3294] Add null pointer check
[TS-3294] Add null pointer check
Coverity CID:1021866
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/1d19318b
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/1d19318b
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/1d19318b
Branch: refs/heads/master
Commit: 1d19318b0d59436d007ccad85dfcbbfa1a722807
Parents: a2bc124
Author: Sudheer Vinukonda <su...@yahoo-inc.com>
Authored: Fri Jan 23 16:34:29 2015 +0000
Committer: Sudheer Vinukonda <su...@yahoo-inc.com>
Committed: Fri Jan 23 16:34:29 2015 +0000
----------------------------------------------------------------------
proxy/http/HttpTransact.cc | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/1d19318b/proxy/http/HttpTransact.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index e9aa01b..39fe64a 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -5572,6 +5572,7 @@ HttpTransact::initialize_state_variables_from_response(State* s, HTTPHdr* incomi
if (incoming_response->presence(MIME_PRESENCE_TRANSFER_ENCODING)) {
MIMEField *field = incoming_response->field_find(MIME_FIELD_TRANSFER_ENCODING, MIME_LEN_TRANSFER_ENCODING);
+ ink_assert(field != NULL);
HdrCsvIter enc_val_iter;
int enc_val_len;