Skip to content

Commit

Permalink
detect: minor cleanup
Browse files Browse the repository at this point in the history
MPM_HS does not need a guard.
  • Loading branch information
victorjulien committed Nov 28, 2023
1 parent d005fff commit 574c8b5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/detect-engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -2744,10 +2744,7 @@ static int DetectEngineCtxLoadConf(DetectEngineCtx *de_ctx)
/* for now, since we still haven't implemented any intelligence into
* understanding the patterns and distributing mpm_ctx across sgh */
if (de_ctx->mpm_matcher == MPM_AC || de_ctx->mpm_matcher == MPM_AC_KS ||
#ifdef BUILD_HYPERSCAN
de_ctx->mpm_matcher == MPM_HS ||
#endif
de_ctx->mpm_matcher == MPM_AC_BS) {
de_ctx->mpm_matcher == MPM_HS || de_ctx->mpm_matcher == MPM_AC_BS) {
de_ctx->sgh_mpm_ctx_cnf = ENGINE_SGH_MPM_FACTORY_CONTEXT_SINGLE;
} else {
de_ctx->sgh_mpm_ctx_cnf = ENGINE_SGH_MPM_FACTORY_CONTEXT_FULL;
Expand Down

0 comments on commit 574c8b5

Please sign in to comment.