From: Jeff Lucovsky Date: Thu, 27 Feb 2025 16:49:05 +0000 (-0500) Subject: applayer/ftp: Misc cleanup X-Git-Tag: suricata-8.0.0-beta1~345 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12687%2Fhead;p=thirdparty%2Fsuricata.git applayer/ftp: Misc cleanup Issue: 4082 Small fixups. --- 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, } }