From 81185e903439cc1ed26a967ebb07a4bf351b00d6 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Thu, 6 Jun 2024 23:04:29 +0200 Subject: [PATCH] fixup! detect: allow rule which need both directions to match --- src/detect-engine-state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-engine-state.c b/src/detect-engine-state.c index d4ba6ae8c3e7..25de385ed393 100644 --- a/src/detect-engine-state.c +++ b/src/detect-engine-state.c @@ -248,7 +248,7 @@ static inline void ResetTxState(DetectEngineState *s) s->dir_state[i].filestore_cnt = 0; s->dir_state[i].flags = 0; /* reset 'cur' back to the list head */ - s->dir_state[i].cur = s->dir_state[0].head; + s->dir_state[i].cur = s->dir_state[i].head; } } }