From: Victor Julien Date: Mon, 12 Oct 2015 16:39:57 +0000 (+0200) Subject: detect: remove unused flag X-Git-Tag: suricata-3.1RC1~345 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f7e33a4b002167045e98d4878b45b73d6401194;p=thirdparty%2Fsuricata.git detect: remove unused flag --- diff --git a/src/detect.c b/src/detect.c index 7dec444935..64c14025be 100644 --- a/src/detect.c +++ b/src/detect.c @@ -3294,7 +3294,6 @@ int RulesGroupByProto(DetectEngineCtx *de_ctx) SigGroupHeadFree(sgh_ts[p]); sgh_ts[p] = lookup_sgh; - sgh_ts[p]->flags |= SIG_GROUP_HEAD_REFERENCED; de_ctx->gh_reuse++; ref++; @@ -3331,7 +3330,6 @@ int RulesGroupByProto(DetectEngineCtx *de_ctx) SigGroupHeadFree(sgh_tc[p]); sgh_tc[p] = lookup_sgh; - sgh_tc[p]->flags |= SIG_GROUP_HEAD_REFERENCED; de_ctx->gh_reuse++; ref++; @@ -3516,7 +3514,6 @@ static DetectPort *RulesGroupByPorts(DetectEngineCtx *de_ctx, int ipproto, uint3 SigGroupHeadFree(iter->sh); iter->sh = lookup_sgh; iter->flags |= PORT_SIGGROUPHEAD_COPY; - iter->sh->flags |= SIG_GROUP_HEAD_REFERENCED; de_ctx->gh_reuse++; ref++; diff --git a/src/detect.h b/src/detect.h index 55bfafa2f4..41ca8412d4 100644 --- a/src/detect.h +++ b/src/detect.h @@ -949,7 +949,7 @@ typedef struct SigTableElmt_ { #define SIG_GROUP_HEAD_FREE (1 << 16) #define SIG_GROUP_HEAD_MPM_PACKET (1 << 17) #define SIG_GROUP_HEAD_MPM_STREAM (1 << 18) -#define SIG_GROUP_HEAD_REFERENCED (1 << 19) /**< sgh is being referenced by others, don't clear */ + #define SIG_GROUP_HEAD_HAVEFILEMAGIC (1 << 20) #define SIG_GROUP_HEAD_HAVEFILEMD5 (1 << 21) #define SIG_GROUP_HEAD_HAVEFILESIZE (1 << 22)