]> git.ipfire.org Git - thirdparty/suricata.git/commit
dns: fix transaction handling
authorVictor Julien <victor@inliniac.net>
Thu, 14 Nov 2013 14:44:35 +0000 (15:44 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 15 Nov 2013 14:41:24 +0000 (15:41 +0100)
commitbee5ff172b69c6ff129d94335953859b95bbc0c6
tree60ecf607b8df742b1c1adf7ac61497eaf8d2b139
parent6730f3d5ccd422a0b557bc2ff69814c8fe528abf
dns: fix transaction handling

When logging is disabled, the app layer would still be flagged
as logging. This caused transactions not to be freed until the
end of the flow as the logged tx id would never increment.

This fix postpones the setting of the app layer parser "logger"
flag to the point where we know the logger is enabled.
src/app-layer-dns-common.c
src/app-layer-parser.c
src/log-dnslog.c