]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #3914: ftp: remove file_data dependency on file_id
authorPriyanka Bangalore Gurudev (prbg) <prbg@cisco.com>
Fri, 14 Jul 2023 19:13:03 +0000 (19:13 +0000)
committerPriyanka Bangalore Gurudev (prbg) <prbg@cisco.com>
Fri, 14 Jul 2023 19:13:03 +0000 (19:13 +0000)
Merge in SNORT/snort3 from ~PRBG/snort3:file_data_for_ftp_traffic to master

Squashed commit of the following:

commit f10bfb3e8f36f11d6170e85710d97a90b115fe5d
Author: Priyanka Gurudev <prbg@cisco.com>
Date:   Wed Jul 12 13:50:40 2023 -0400

    ftp: remove file_data dependency on file_id

src/service_inspectors/ftp_telnet/ftp_data.cc

index 784194c20a5386566abc3f42ed2ee53ca695ad2b..3d487e6c58ef2e9f8e6963f33109f089858beeee 100644 (file)
@@ -311,9 +311,6 @@ void FtpData::eval(Packet* p)
     // precondition - what we registered for
     assert(p->has_tcp_data());
 
-    if (FileService::get_max_file_depth() < 0)
-        return;
-
     SnortFTPData(p);
     ++fdstats.total_packets;
 }