]> 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)
committerJeff Lucovsky <jeff@lucovsky.org>
Mon, 15 Feb 2021 18:25:41 +0000 (13:25 -0500)
commite573433ed7e41e2f82b55eeacb8f29d5428fb212
treee339f2ec7e35df4a6c9e25bc18907beecabf5a5e
parent404d74df0df3fe8142e1de859a4055a4674192f7
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.

(cherry picked from commit 85327890f5bb3b9521a2dfb8268ace6645d02f72)
src/suricata.c