]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/magic: fix crash on rule reloading
authorAngelo Mirabella <amirabella@lastline.com>
Tue, 26 May 2020 17:00:06 +0000 (18:00 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 4 Nov 2020 15:30:24 +0000 (16:30 +0100)
commitc72069c3b2c276a3b6cef627f1d8983d2df25bbe
tree43279a8bb3d7728cc06cbad815319fbc79d9f303
parentea15282f47c6ff781533e3a063f9c903dd6f1afb
detect/magic: fix crash on rule reloading

This changseset fixes a bug causing a segmentation fault.
When rules are reloaded and a rule using libmagic matches, suricata
crashes due to an improper reinitialization of the thread contexts.

Bug: #3726
src/detect-filemagic.c