]> git.ipfire.org Git - thirdparty/suricata.git/commit
ftp-data: fix direction for active mode commands 7356/head
authorVictor Julien <vjulien@oisf.net>
Sat, 30 Apr 2022 14:54:07 +0000 (16:54 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 2 May 2022 10:45:50 +0000 (12:45 +0200)
commit07bf9214513e54e04508c055bb8ed29aa3bce60f
tree3f549bce2b2d7ee849ba50e33b60e0a2b1ffcaeb
parent323fe1c1ac0bb93a2e46491790d48fa25c9a40b8
ftp-data: fix direction for active mode commands

Set correct direction for PORT mode, where the server connects
to the client.

The direction is not also strictly enforced. No data in the wrong
direction will be accepted to setup the file or to be added to the
file after setup.

This also fixes files getting closed twice.

Adds some general cleanups.

Bug: #3542.
src/app-layer-ftp.c