]> git.ipfire.org Git - thirdparty/suricata.git/commit
output: fix logging wrong direction in tls upgrade 3353/head
authorVictor Julien <victor@inliniac.net>
Fri, 2 Mar 2018 12:44:43 +0000 (13:44 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 6 Apr 2018 07:05:54 +0000 (09:05 +0200)
commit2c95f63d2a001a27f94d89a42b8e0077c56c2e12
treea1695e72750a5930d3a971ac319315ddb7983449
parent2eadd77e1036f5d6a99acc8e12c237b9cc7093be
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