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); } /**