From: Victor Julien Date: Thu, 28 Nov 2019 10:47:56 +0000 (+0100) Subject: detect/mpm: don't process empty store X-Git-Tag: suricata-6.0.0-beta1~533 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f903766849c42fb4949be27c26a934a86597ca52;p=thirdparty%2Fsuricata.git detect/mpm: don't process empty store --- 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)