From a8f35cc30ec91d0a01615906e4f5dddae93c4467 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Fri, 31 May 2019 12:58:50 +0200 Subject: [PATCH] util-ebpf: discard flow if no Flow storage --- src/util-ebpf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {