From 644d4dc61b466e28319c53af177878b4175b5241 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 17 Sep 2016 12:21:22 +0200 Subject: [PATCH] http_stat_code: register mpm from keyword --- src/detect-engine-mpm.c | 3 --- src/detect-http-stat-code.c | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index 536f0a1879..ba1147166c 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -97,9 +97,6 @@ typedef struct AppLayerMpms_ { } AppLayerMpms; AppLayerMpms app_mpms[] = { - { "http_stat_code", 0, SIG_FLAG_TOCLIENT, DETECT_SM_LIST_HSCDMATCH, - PrefilterTxHttpStatCodeRegister, 0}, - { "http_client_body", 0, SIG_FLAG_TOSERVER, DETECT_SM_LIST_HCBDMATCH, PrefilterTxHttpRequestBodyRegister, 0}, diff --git a/src/detect-http-stat-code.c b/src/detect-http-stat-code.c index 2248694d1e..58e28fd465 100644 --- a/src/detect-http-stat-code.c +++ b/src/detect-http-stat-code.c @@ -59,6 +59,7 @@ #include "app-layer-htp.h" #include "detect-http-stat-code.h" +#include "detect-engine-hscd.h" #include "stream-tcp-private.h" #include "stream-tcp.h" @@ -85,6 +86,10 @@ void DetectHttpStatCodeRegister (void) sigmatch_table[DETECT_AL_HTTP_STAT_CODE].flags |= SIGMATCH_NOOPT; sigmatch_table[DETECT_AL_HTTP_STAT_CODE].flags |= SIGMATCH_PAYLOAD; + + DetectMpmAppLayerRegister("http_stat_code", SIG_FLAG_TOCLIENT, + DETECT_SM_LIST_HSCDMATCH, + PrefilterTxHttpStatCodeRegister); } /**