From: Eric Leblond Date: Sun, 17 Dec 2017 10:47:11 +0000 (+0100) Subject: util-ebpf: fix XDP delete key X-Git-Tag: suricata-4.1.0-beta1~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60752d231c3d2faaecacd44c62754d3facc59850;p=thirdparty%2Fsuricata.git util-ebpf: fix XDP delete key The key was deleted twice so let's remove the local deletion. --- diff --git a/src/util-ebpf.c b/src/util-ebpf.c index 9e2a14add8..48c9e6c349 100644 --- a/src/util-ebpf.c +++ b/src/util-ebpf.c @@ -338,7 +338,6 @@ static int EBPFBypassedFlowV6Timeout(int fd, struct flowv6_keys *key, struct pai if (curtime->tv_sec - value->time / 1000000000 > BYPASSED_FLOW_TIMEOUT) { SCLogDebug("Got no packet for %d -> %d at %" PRIu64, key->port16[0], key->port16[1], value->time); - EBPFDeleteKey(fd, key); return 1; } return 0;