]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Reset both sides of the de_state on rule reload. Bug #998. 591/head
authorVictor Julien <victor@inliniac.net>
Mon, 14 Oct 2013 14:33:23 +0000 (16:33 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 14 Oct 2013 14:33:23 +0000 (16:33 +0200)
src/detect.c

index 79b60365e3cc6130bb3f278fbe950e726edafceb..d2a4d1bda0eebf1810eb369e77b8522885f0ab8c 100644 (file)
@@ -1206,7 +1206,7 @@ int SigMatchSignatures(ThreadVars *th_v, DetectEngineCtx *de_ctx, DetectEngineTh
         /* reset because of ruleswap */
         if (reset_de_state) {
             SCMutexLock(&p->flow->de_state_m);
-            DetectEngineStateReset(p->flow->de_state, flags);
+            DetectEngineStateReset(p->flow->de_state, (STREAM_TOSERVER|STREAM_TOCLIENT));
             SCMutexUnlock(&p->flow->de_state_m);
         }