profiling: check packet flag first

This fixes the state handling and simplify the logic.

(cherry picked from commit b128a75973)
pull/11348/head
Eric Leblond 2 years ago committed by Victor Julien
parent 8baa505c72
commit 5d8ac12236

@ -1470,7 +1470,6 @@ int SCProfileRuleStart(Packet *p)
p->flags |= PKT_PROFILE;
return 1;
}
return 0;
}

Loading…
Cancel
Save