diff --git a/src/detect-engine.c b/src/detect-engine.c index fac0a8a7a6..f1fca6235c 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -171,6 +171,13 @@ void DetectAppLayerInspectEngineRegister(const char *name, AppProto alproto, uint32_t dir, int progress, InspectEngineFuncPtr Callback) { + if (AppLayerParserIsTxAware(alproto)) { + if (!AppLayerParserSupportsTxDetectFlags(alproto)) { + FatalError(SC_ERR_INITIALIZATION, + "Inspect engine registered for app-layer protocol without " + "TX detect flag support: %s", AppProtoToString(alproto)); + } + } DetectBufferTypeRegister(name); const int sm_list = DetectBufferTypeGetByName(name); if (sm_list == -1) {