]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4470: add filename for ftp file process
authorSerhii Vlasiuk -X (svlasiuk - SOFTSERVE INC at Cisco) <svlasiuk@cisco.com>
Mon, 14 Oct 2024 14:16:19 +0000 (14:16 +0000)
committerSteve Chew (stechew) <stechew@cisco.com>
Mon, 14 Oct 2024 14:16:19 +0000 (14:16 +0000)
Merge in SNORT/snort3 from ~SVLASIUK/snort3:ftp_download to master

Squashed commit of the following:

commit 756cb0d29045470f3d0510b35192c12da2b83f25
Author: Serhii Vlasiuk <svlasiuk@cisco.com>
Date:   Tue Sep 10 14:16:02 2024 +0300

    ftp_telnet: add filename for ftp file processing

src/service_inspectors/ftp_telnet/ftp_data.cc

index 4e21eb768553a79bfff91ffed804fe4503fe36a6..232c590056ff74674934122af7af77b182553afb 100644 (file)
@@ -85,7 +85,8 @@ static void FTPDataProcess(
         file_flows->set_sig_gen_state(false);
 
     status = file_flows->file_process(p, file_data, data_length,
-        data_ssn->position, data_ssn->direction, data_ssn->path_hash);
+        data_ssn->position, data_ssn->direction, data_ssn->path_hash,
+        (uint8_t*)data_ssn->filename, data_ssn->file_xfer_info);
 
     if (p->active->packet_force_dropped())
     {