trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhe...@apache.org
Subject [2/3] trafficserver git commit: [TS-3294] Add null pointer check
Date Fri, 23 Jan 2015 16:35:11 GMT
[TS-3294] Add null pointer check

Coverity CID:1021867


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

Branch: refs/heads/master
Commit: a2bc1245859c2add6b0468586566c83f630889a5
Parents: b62ea0c
Author: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Authored: Fri Jan 23 16:33:45 2015 +0000
Committer: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Committed: Fri Jan 23 16:33:45 2015 +0000

----------------------------------------------------------------------
 proxy/http/HttpTransact.cc | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/a2bc1245/proxy/http/HttpTransact.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index e3f06f0..e9aa01b 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -7742,6 +7742,7 @@ HttpTransact::build_response(State* s, HTTPHdr* base_response, HTTPHdr*
outgoing
           for (size_t i = 0; i < sizeof(field_len) / sizeof(field_len[0]); i++) {
             if (base_response->presence(field_presence[i])) {
               field = base_response->field_find(field_name[i], field_len[i]);
+              ink_assert(field != NULL);
               value = field->value_get(&len);
               outgoing_response->value_append(field_name[i], field_len[i], value, len,
0);
             }


Mime
View raw message