detect mpm: negated setup fix

pull/2310/head
Victor Julien 9 years ago
parent 5537e25f38
commit 9187c20782

@ -1244,7 +1244,9 @@ int PatternMatchPrepareGroup(DetectEngineCtx *de_ctx, SigGroupHead *sh)
if (mpm_store != NULL) { if (mpm_store != NULL) {
sh->init->app_mpms[a->id] = mpm_store->mpm_ctx; sh->init->app_mpms[a->id] = mpm_store->mpm_ctx;
if (a->PrefilterRegister) { /* if we have just certain types of negated patterns,
* mpm_ctx can be NULL */
if (a->PrefilterRegister && mpm_store->mpm_ctx) {
BUG_ON(a->PrefilterRegister(sh, mpm_store->mpm_ctx) != 0); BUG_ON(a->PrefilterRegister(sh, mpm_store->mpm_ctx) != 0);
} }
} }

Loading…
Cancel
Save