output: don't register loggers for disabled protocols

pull/2168/head
Victor Julien 9 years ago
parent 01913f6a56
commit ed483b4e13

@ -67,6 +67,12 @@ int OutputRegisterTxLogger(const char *name, AppProto alproto, TxLogger LogFunc,
if (module_id < 0)
return -1;
if (!(AppLayerParserIsTxAware(alproto))) {
SCLogNotice("%s logger not enabled: protocol %s is disabled",
name, AppProtoToString(alproto));
return -1;
}
OutputTxLogger *op = SCMalloc(sizeof(*op));
if (op == NULL)
return -1;

Loading…
Cancel
Save