]> git.ipfire.org Git - thirdparty/suricata.git/commit
tx logging: only update logged tx id if all loggers logged 2499/head
authorJason Ish <ish@unx.ca>
Mon, 9 Jan 2017 22:11:08 +0000 (16:11 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 17 Jan 2017 23:03:04 +0000 (00:03 +0100)
commite9fccfa67c0badc26649593cd8f30a5f8c2e7055
treed6c52965fe01dcc8d393c7084982da1fe7d8e00c
parent0d5fd0f6580682b30628b9f1abf02e478b1eda94
tx logging: only update logged tx id if all loggers logged

Prevents the case where the logged id is incremented if a newer
transaction is complete and an older one is still outstanding.

For example, dns request0, unsolicited dns response, dns response0

would result in the valid response0 never being logged.

Similarily this could happen for:
  request0, request1, response1, response0

which would end up having request0, request1 and response1 logged,
but response0 would not be logged.
src/app-layer-parser.c
src/app-layer-parser.h
src/output-tx.c