]> git.ipfire.org Git - thirdparty/suricata.git/commit
output: fix logging wrong direction in tls upgrade 3263/head
authorVictor Julien <victor@inliniac.net>
Fri, 2 Mar 2018 12:44:43 +0000 (13:44 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 2 Mar 2018 16:46:36 +0000 (17:46 +0100)
commit68b9ebdc02c9fda03208dc3226703294b704fdb9
tree394a359db9af7b61a1c5b4fbcd38ec4716963e7b
parent710c7b821fcb919dfaa816f45a8b342acee622f4
output: fix logging wrong direction in tls upgrade

When upgrading to TLS from HTTP logging of the final HTTP tx could
have the wrong direction. This was due to the original packet triggering/
finalizing the upgrade would be used as the base for both the toserver
and toclient pseudo packet meaning it was wrong in one direction.

This patch creates a pseudo packet in the same way as the flow timeout
code does, so it no longer takes the raw original packet in.

Bug #2430
src/stream-tcp.c