trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject [trafficserver] branch master updated: TS-4473: Failed clang-analyzer, dereference null pointer
Date Tue, 24 May 2016 17:41:34 GMT
This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  cd1782d   TS-4473: Failed clang-analyzer, dereference null pointer
cd1782d is described below

commit cd1782d757ea62789292b2d1200eedbf1ed2e53a
Author: Bryan Call <bcall@apache.org>
AuthorDate: Tue May 24 10:39:31 2016 -0700

    TS-4473: Failed clang-analyzer, dereference null pointer
---
 proxy/InkAPITest.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/proxy/InkAPITest.cc b/proxy/InkAPITest.cc
index 11122dc..a9852ed 100644
--- a/proxy/InkAPITest.cc
+++ b/proxy/InkAPITest.cc
@@ -6024,8 +6024,9 @@ parent_proxy_handler(TSCont contp, TSEvent event, void *edata)
 
   CHECK_SPURIOUS_EVENT(contp, event, edata);
   ptest = (ParentTest *)TSContDataGet(contp);
+  ink_release_assert(ptest);
 
-  if (ptest && ptest->deferred.event != TS_EVENT_NONE) {
+  if (ptest->deferred.event != TS_EVENT_NONE) {
     event = ptest->deferred.event;
     edata = ptest->deferred.edata;
     ptest->deferred.event = TS_EVENT_NONE;

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Mime
View raw message