From: Victor Julien Date: Mon, 14 Oct 2013 14:33:23 +0000 (+0200) Subject: Reset both sides of the de_state on rule reload. Bug #998. X-Git-Tag: suricata-2.0beta2~220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F591%2Fhead;p=thirdparty%2Fsuricata.git Reset both sides of the de_state on rule reload. Bug #998. --- diff --git a/src/detect.c b/src/detect.c index 79b60365e3..d2a4d1bda0 100644 --- a/src/detect.c +++ b/src/detect.c @@ -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); }