diff --git a/doc/userguide/rules/meta.rst b/doc/userguide/rules/meta.rst index 0e888add697a..1ceb5fe834e0 100644 --- a/doc/userguide/rules/meta.rst +++ b/doc/userguide/rules/meta.rst @@ -258,3 +258,4 @@ default to 0. The ``version`` may only be specified once, if specified more than once the rule will log an error and not be loaded. +The ``requires`` keyword was introduced in Suricata 7.0.3 and 8.0.0. diff --git a/requirements.txt b/requirements.txt index 289c0223144a..0c29e60313c8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,5 +3,5 @@ # Format: # # name {repo} {branch|tag} -libhtp https://github.com/OISF/libhtp 0.5.45 +libhtp https://github.com/OISF/libhtp 0.5.x suricata-update https://github.com/OISF/suricata-update 1.3.0 diff --git a/src/detect-engine-loader.c b/src/detect-engine-loader.c index 9c3e3e8b533c..1f5363c6f80c 100644 --- a/src/detect-engine-loader.c +++ b/src/detect-engine-loader.c @@ -122,6 +122,7 @@ static int DetectLoadSigFile( (*goodsigs) = 0; (*badsigs) = 0; + (*skippedsigs) = 0; FILE *fp = fopen(sig_file, "r"); if (fp == NULL) { diff --git a/src/detect-parse.c b/src/detect-parse.c index 31df3d0aaed3..e1c073efd6a3 100644 --- a/src/detect-parse.c +++ b/src/detect-parse.c @@ -2315,7 +2315,9 @@ Signature *SigInit(DetectEngineCtx *de_ctx, const char *sigstr) SCEnter(); uint32_t oldsignum = de_ctx->signum; + de_ctx->sigerror_ok = false; de_ctx->sigerror_silent = false; + de_ctx->sigerror_requires = false; Signature *sig;