diff --git a/src/detect-dsize.c b/src/detect-dsize.c index 8ceb23c5c7..6554093712 100644 --- a/src/detect-dsize.c +++ b/src/detect-dsize.c @@ -301,10 +301,6 @@ static int DetectDsizeSetup (DetectEngineCtx *de_ctx, Signature *s, char *rawstr /* tell the sig it has a dsize to speed up engine init */ s->flags |= SIG_FLAG_DSIZE; - if (s->dsize_sm != NULL) { - s->dsize_sm = sm; - } - return 0; error: diff --git a/src/detect.c b/src/detect.c index f809ebde3b..848e43baed 100644 --- a/src/detect.c +++ b/src/detect.c @@ -1526,11 +1526,6 @@ int SigMatchSignatures(ThreadVars *th_v, DetectEngineCtx *de_ctx, DetectEngineTh } } - if (s->flags & SIG_FLAG_DSIZE && s->dsize_sm != NULL) { - if (sigmatch_table[DETECT_DSIZE].Match(th_v, det_ctx, p, s, s->dsize_sm) == 0) - goto next; - } - /* Check the payload keywords. If we are a MPM sig and we've made * to here, we've had at least one of the patterns match */ if (s->sm_lists[DETECT_SM_LIST_PMATCH] != NULL) { diff --git a/src/detect.h b/src/detect.h index f929fe8bf0..2ecd9bb4d8 100644 --- a/src/detect.h +++ b/src/detect.h @@ -416,8 +416,6 @@ typedef struct Signature_ { /** netblocks and hosts specified at the sid, in CIDR format */ IPOnlyCIDRItem *CidrSrc, *CidrDst; - struct SigMatch_ *dsize_sm; - /* helper for init phase */ uint16_t mpm_content_maxlen; uint16_t mpm_uricontent_maxlen;