From 0496b3f6a55a1f72c46c570737e871cc7ebf7289 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 22 Sep 2016 18:05:52 +0200 Subject: [PATCH] http_raw_host: register inspect engine from keyword --- src/detect-engine.c | 4 ---- src/detect-http-hrh.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/detect-engine.c b/src/detect-engine.c index da7c73c59a..193740f596 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -49,7 +49,6 @@ #include "detect-engine-hrhd.h" #include "detect-engine-hsmd.h" #include "detect-engine-hscd.h" -#include "detect-engine-hrhhd.h" #include "detect-engine-file.h" #include "detect-engine-dns.h" #include "detect-engine-tls.h" @@ -126,9 +125,6 @@ void DetectEngineRegisterAppInspectionEngines(void) { ALPROTO_HTTP, DETECT_SM_LIST_FILEMATCH, DetectFileInspectHttp }, - { ALPROTO_HTTP, - DETECT_SM_LIST_HRHHDMATCH, - DetectEngineInspectHttpHRH }, /* DNS */ { ALPROTO_DNS, DETECT_SM_LIST_DNSQUERYNAME_MATCH, diff --git a/src/detect-http-hrh.c b/src/detect-http-hrh.c index 3ba72481fb..53c1919e30 100644 --- a/src/detect-http-hrh.c +++ b/src/detect-http-hrh.c @@ -83,6 +83,10 @@ void DetectHttpHRHRegister(void) DETECT_SM_LIST_HRHHDMATCH, 2, PrefilterTxHostnameRawRegister); + DetectAppLayerInspectEngineRegister(ALPROTO_HTTP, SIG_FLAG_TOSERVER, + DETECT_SM_LIST_HRHHDMATCH, + DetectEngineInspectHttpHRH); + return; }