]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
util-ebpf: fix XDP delete key
authorEric Leblond <eric@regit.org>
Sun, 17 Dec 2017 10:47:11 +0000 (11:47 +0100)
committerEric Leblond <eric@regit.org>
Tue, 6 Feb 2018 15:58:18 +0000 (16:58 +0100)
The key was deleted twice so let's remove the local deletion.

src/util-ebpf.c

index 9e2a14add8a48754f636f2bc802fc47deda13093..48c9e6c349c4b1ad497b11a0b4354e35c87f492d 100644 (file)
@@ -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;