From cd705752db5bb55c03db0f1af35c7dc139d94ffb Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 23 Sep 2016 08:30:57 +0200 Subject: [PATCH] http_stat_msg: register inspect engine from keyword --- src/detect-engine.c | 4 ---- src/detect-http-stat-msg.c | 8 ++++++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/detect-engine.c b/src/detect-engine.c index b0b1dc0f87..a77933a51a 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -46,7 +46,6 @@ #include "detect-engine-uri.h" #include "detect-engine-hrhd.h" -#include "detect-engine-hsmd.h" #include "detect-engine-hscd.h" #include "detect-engine-file.h" #include "detect-engine-dns.h" @@ -152,9 +151,6 @@ void DetectEngineRegisterAppInspectionEngines(void) { ALPROTO_HTTP, DETECT_SM_LIST_FILEMATCH, DetectFileInspectHttp }, - { ALPROTO_HTTP, - DETECT_SM_LIST_HSMDMATCH, - DetectEngineInspectHttpStatMsg }, { ALPROTO_HTTP, DETECT_SM_LIST_HSCDMATCH, DetectEngineInspectHttpStatCode }, diff --git a/src/detect-http-stat-msg.c b/src/detect-http-stat-msg.c index de60f71788..cbaa4a7f58 100644 --- a/src/detect-http-stat-msg.c +++ b/src/detect-http-stat-msg.c @@ -88,8 +88,12 @@ void DetectHttpStatMsgRegister (void) sigmatch_table[DETECT_AL_HTTP_STAT_MSG].flags |= SIGMATCH_PAYLOAD; DetectMpmAppLayerRegister("http_stat_msg", SIG_FLAG_TOCLIENT, - DETECT_SM_LIST_HSMDMATCH, 3, - PrefilterTxHttpStatMsgRegister); + DETECT_SM_LIST_HSMDMATCH, 3, + PrefilterTxHttpStatMsgRegister); + + DetectAppLayerInspectEngineRegister(ALPROTO_HTTP, SIG_FLAG_TOCLIENT, + DETECT_SM_LIST_HSMDMATCH, + DetectEngineInspectHttpStatMsg); } /**