eve/flow: turn error into debug assertion

In case this hits logging an error is harmful, better to silently
continue.

Remove use of `default` to help the compiler flag new enum additions.
pull/11804/head
Victor Julien 11 months ago committed by Victor Julien
parent b3ed752cf1
commit 51392a6af1

@ -252,8 +252,9 @@ static void EveFlowLogJSON(OutputJsonThreadCtx *aft, JsonBuilder *jb, Flow *f)
JB_SET_STRING(jb, "bypass", "capture");
break;
#endif
default:
SCLogError("Invalid flow state: %d, contact developers", flow_state);
case FLOW_STATE_SIZE:
DEBUG_VALIDATE_BUG_ON(1);
SCLogDebug("invalid flow state: %d, contact developers", flow_state);
}
const char *reason = NULL;

Loading…
Cancel
Save