You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2016/05/24 17:41:34 UTC

[trafficserver] branch master updated: TS-4473: Failed clang-analyzer, dereference null pointer

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 <bc...@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" <co...@trafficserver.apache.org>'].