]> git.ipfire.org Git - thirdparty/suricata.git/commit
suricata: avoid at exit crash in nfq mode
authorEric Leblond <eric@regit.org>
Sun, 24 Jan 2021 21:40:02 +0000 (22:40 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 25 Jan 2021 10:00:48 +0000 (11:00 +0100)
commit85327890f5bb3b9521a2dfb8268ace6645d02f72
tree644b6d911414d04ad358e3c604ebbc2060ecf89b
parente6cfcb704c32c1356caaa9176536557459793ff3
suricata: avoid at exit crash in nfq mode

When Suricata was build with ebpf support and when it was started
in NFQ mode, it was crashing at exit because it was trying to free
the device extension.

This patch fixes the issue by only trigger the eBPF related code
when Suricata is running in AFP_PACKET mode.
src/suricata.c