bypass: fix BypassManager BypassedCheckFunc check

Switch check whether BypassedCheckFuncInit was registered to
check whether BypassedCheckFunc was registered.

Ticket: 8473
(cherry picked from commit 0a8e3132c2)
pull/15953/head
Adam Kiripolsky 5 months ago committed by Philippe Antoine
parent 37622a5b43
commit ded4b046a8

@ -85,7 +85,7 @@ static TmEcode BypassedFlowManager(ThreadVars *th_v, void *thread_data)
/* check if we have a periodic check function */
bool found = false;
for (i = 0; i < g_bypassed_func_max_index; i++) {
if (bypassedfunclist[i].FuncInit) {
if (bypassedfunclist[i].Func) {
found = true;
break;
}

Loading…
Cancel
Save