From 9b088ed0188b3448f7127c69a091fd54e00f4245 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Thu, 27 Feb 2025 11:49:05 -0500 Subject: [PATCH] applayer/ftp: Misc cleanup Issue: 4082 Small fixups. --- rust/src/ftp/ftp.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rust/src/ftp/ftp.rs b/rust/src/ftp/ftp.rs index f294c54a57..24750e8e58 100644 --- a/rust/src/ftp/ftp.rs +++ b/rust/src/ftp/ftp.rs @@ -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, } }