detect-mpm: cleanup

pull/2310/head
Victor Julien 10 years ago
parent 5f994756e6
commit ad3c97f470

@ -458,10 +458,10 @@ uint32_t PatternStrength(uint8_t *pat, uint16_t patlen)
return s; return s;
} }
static void PopulateMpmHelperAddPatternToPktCtx(MpmCtx *mpm_ctx, static void PopulateMpmHelperAddPattern(MpmCtx *mpm_ctx,
const DetectContentData *cd, const DetectContentData *cd,
const Signature *s, uint8_t flags, const Signature *s, uint8_t flags,
int chop) int chop)
{ {
uint16_t pat_offset = cd->offset; uint16_t pat_offset = cd->offset;
uint16_t pat_depth = cd->depth; uint16_t pat_depth = cd->depth;
@ -948,7 +948,7 @@ void MpmStoreSetup(const DetectEngineCtx *de_ctx, MpmStore *ms)
} }
if (!skip) { if (!skip) {
PopulateMpmHelperAddPatternToPktCtx(ms->mpm_ctx, PopulateMpmHelperAddPattern(ms->mpm_ctx,
cd, s, 0, (cd->flags & DETECT_CONTENT_FAST_PATTERN_CHOP)); cd, s, 0, (cd->flags & DETECT_CONTENT_FAST_PATTERN_CHOP));
} }
} }

Loading…
Cancel
Save