diff --git a/src/util-ebpf.c b/src/util-ebpf.c index ac15f2b2c0..da9ad75195 100644 --- a/src/util-ebpf.c +++ b/src/util-ebpf.c @@ -539,7 +539,8 @@ static int EBPFUpdateFlowForKey(struct flows_stats *flowstats, FlowKey *flow_key FlowCounters *fc = FlowGetStorageById(f, GetFlowBypassCounterID()); if (fc == NULL) { FLOWLOCK_UNLOCK(f); - return 0; + flowstats->count++; + return pkts_cnt; } if (flow_key->sp == f->sp) { if (pkts_cnt != fc->todstpktcnt) {