]> 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>
Tue, 30 Jan 2018 09:32:16 +0000 (10:32 +0100)
src/detect-engine.c

index 77d9b09fee4fa00fef7d546ddf083efc27c09526..05fedbfa5860b7700113c4f563e17d03bfe06095 100644 (file)
@@ -903,6 +903,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;
             }