Skip to content

Commit

Permalink
Merge pull request #2037 from l2dy/tracer
Browse files Browse the repository at this point in the history
tracer: fix null pointer dereference
(cherry picked from commit d59715e)
  • Loading branch information
bogdan-iancu committed Apr 20, 2020
1 parent 550f773 commit 5f9afd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tracer/tracer.c
Expand Up @@ -3127,7 +3127,7 @@ trace_dest get_next_trace_dest(trace_dest last_dest, int hash)

for (instance = info->instances; instance; instance = instance->next) {
for (it=instance->trace_list; it && it->hash == hash; it=it->next) {
if (it->type == TYPE_HEP && (it->traceable || !(*it->traceable))) {
if (it->type == TYPE_HEP && (!(it->traceable) || *it->traceable)) {
if (found_last)
return it->el.hep.hep_id;
else if (it->el.hep.hep_id == last_dest)
Expand Down

0 comments on commit 5f9afd3

Please sign in to comment.