}
const DetectEngineAppInspectionEngine *engine = s->app_inspect;
- while (engine != NULL) { // TODO could be do {} while as s->app_inspect cannot be null
+ do {
TRACE_SID_TXS(s->id, tx, "engine %p inspect_flags %x", engine, inspect_flags);
if (!(inspect_flags & BIT_U32(engine->id)) &&
direction == engine->dir)
break;
}
engine = engine->next;
- }
+ } while (engine != NULL);
TRACE_SID_TXS(s->id, tx, "inspect_flags %x, total_matches %u, engine %p",
inspect_flags, total_matches, engine);