profiling: check packet flag first

This fixes the state handling and simplify the logic.
pull/11309/head
Eric Leblond 1 year ago committed by Victor Julien
parent eecb3440e2
commit b128a75973

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

Loading…
Cancel
Save