Skip to content

Commit

Permalink
TS-4473: Failed clang-analyzer, dereference null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
bryancall committed May 24, 2016
1 parent 5c49606 commit cd1782d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proxy/InkAPITest.cc
Expand Up @@ -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;
Expand Down

0 comments on commit cd1782d

Please sign in to comment.