tx-logger: speed up

By bailing out early in case no logger is enabled for the protocol,
a significant speed up is reached.
pull/797/head
Victor Julien 12 years ago
parent 078ff0c0cc
commit 38249398a3

@ -103,6 +103,8 @@ static TmEcode OutputTxLog(ThreadVars *tv, Packet *p, void *thread_data, PacketQ
if (AppLayerParserProtocolIsTxAware(p->proto, alproto) == 0)
goto end;
if (AppLayerParserProtocolHasLogger(p->proto, alproto) == 0)
goto end;
void *alstate = f->alstate;//AppLayerGetProtoStateFromPacket((const Packet *)p);
if (alstate == NULL) {

Loading…
Cancel
Save