]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect-engine: add missing mutex unlock
authorAndreas Herz <andi@geekosphere.org>
Thu, 14 Dec 2017 00:10:33 +0000 (01:10 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 14 Dec 2017 18:03:09 +0000 (19:03 +0100)
src/detect-engine.c

index 8ff453f9194d8f77db5817d53a3415b1e03fe517..0a0ad08f7ad846e9a8f99352bf19a8a50828a87c 100644 (file)
@@ -901,6 +901,7 @@ static int DetectEngineReloadThreads(DetectEngineCtx *new_de_ctx)
         TmSlot *slots = tv->tm_slots;
         while (slots != NULL) {
             if (suricata_ctl_flags != 0) {
+                SCMutexUnlock(&tv_root_lock);
                 return -1;
             }