detect/mpm: don't process empty store

pull/4806/head
Victor Julien 6 years ago
parent a95fa3c156
commit f903766849

@ -1118,7 +1118,7 @@ void MpmStoreReportStats(const DetectEngineCtx *de_ctx)
htb = HashListTableGetListNext(htb)) htb = HashListTableGetListNext(htb))
{ {
const MpmStore *ms = (MpmStore *)HashListTableGetListData(htb); const MpmStore *ms = (MpmStore *)HashListTableGetListData(htb);
if (ms == NULL) { if (ms == NULL || ms->mpm_ctx == NULL) {
continue; continue;
} }
if (ms->buffer < MPMB_MAX) if (ms->buffer < MPMB_MAX)

Loading…
Cancel
Save