diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index 0edeacbf16..00d043a1a7 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -1118,7 +1118,7 @@ void MpmStoreReportStats(const DetectEngineCtx *de_ctx) htb = HashListTableGetListNext(htb)) { const MpmStore *ms = (MpmStore *)HashListTableGetListData(htb); - if (ms == NULL) { + if (ms == NULL || ms->mpm_ctx == NULL) { continue; } if (ms->buffer < MPMB_MAX)