]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
applayer/ftp: Misc cleanup 12687/head
authorJeff Lucovsky <jlucovsky@oisf.net>
Thu, 27 Feb 2025 16:49:05 +0000 (11:49 -0500)
committerJeff Lucovsky <jlucovsky@oisf.net>
Thu, 27 Feb 2025 16:49:05 +0000 (11:49 -0500)
Issue: 4082

Small fixups.

rust/src/ftp/ftp.rs

index f294c54a574abd131a18ffd1e144c3c41e6f709b..24750e8e58203e2cbce9b90bba19436e8dd9b5bd 100644 (file)
@@ -143,7 +143,6 @@ pub unsafe extern "C" fn SCFTPSetMpmState(ctx: *const c_void) {
 }
 
 #[repr(C)]
-#[allow(dead_code)]
 pub struct FtpTransferCmd {
     // Must be first -- required by app-layer expectation logic
     data_free: unsafe extern "C" fn(*mut c_void),
@@ -161,7 +160,7 @@ impl Default for FtpTransferCmd {
             file_name: std::ptr::null_mut(),
             file_len: 0,
             direction: 0,
-            cmd: FtpStateValues::FTP_STATE_NONE as u8,
+            cmd: 0,
             data_free: default_free_fn,
         }
     }