From: Victor Julien Date: Wed, 30 Mar 2016 17:53:04 +0000 (+0200) Subject: detect: fix potential deadlock during reload X-Git-Tag: suricata-3.0.1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffb5498228a731ef1775408dfc0a5c1676777a66;p=thirdparty%2Fsuricata.git detect: fix potential deadlock during reload If interrupted during the BreakLoop stage during reload, a deadlock could happen. --- diff --git a/src/detect-engine.c b/src/detect-engine.c index 50a69153ad..3d0b4b52d6 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -551,6 +551,7 @@ static void BreakCapture(void) TmSlot *slots = tv->tm_slots; while (slots != NULL) { if (suricata_ctl_flags != 0) { + SCMutexUnlock(&tv_root_lock); return; }