From: Eric Leblond Date: Fri, 31 May 2019 10:58:50 +0000 (+0200) Subject: util-ebpf: discard flow if no Flow storage X-Git-Tag: suricata-5.0.0-rc1~313 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8f35cc30ec91d0a01615906e4f5dddae93c4467;p=thirdparty%2Fsuricata.git util-ebpf: discard flow if no Flow storage --- 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) {