diff --git a/src/detect-engine.c b/src/detect-engine.c index a77933a51a..cff2e0d26d 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-hscd.h" #include "detect-engine-file.h" #include "detect-engine-dns.h" #include "detect-engine-tls.h" @@ -151,9 +150,6 @@ void DetectEngineRegisterAppInspectionEngines(void) { ALPROTO_HTTP, DETECT_SM_LIST_FILEMATCH, DetectFileInspectHttp }, - { ALPROTO_HTTP, - DETECT_SM_LIST_HSCDMATCH, - DetectEngineInspectHttpStatCode }, /* Modbus */ { ALPROTO_MODBUS, DETECT_SM_LIST_MODBUS_MATCH, diff --git a/src/detect-http-stat-code.c b/src/detect-http-stat-code.c index b127dcc70b..1cd484bc9b 100644 --- a/src/detect-http-stat-code.c +++ b/src/detect-http-stat-code.c @@ -90,6 +90,10 @@ void DetectHttpStatCodeRegister (void) DetectMpmAppLayerRegister("http_stat_code", SIG_FLAG_TOCLIENT, DETECT_SM_LIST_HSCDMATCH, 4, PrefilterTxHttpStatCodeRegister); + + DetectAppLayerInspectEngineRegister(ALPROTO_HTTP, SIG_FLAG_TOCLIENT, + DETECT_SM_LIST_HSCDMATCH, + DetectEngineInspectHttpStatCode); } /**