From f903766849c42fb4949be27c26a934a86597ca52 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 28 Nov 2019 11:47:56 +0100 Subject: [PATCH] detect/mpm: don't process empty store --- src/detect-engine-mpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)