Skip to content

Commit

Permalink
applayer/ftp: Misc cleanup
Browse files Browse the repository at this point in the history
Issue: 4082

Small fixups.
  • Loading branch information
jlucovsky committed Feb 27, 2025
1 parent b7d240f commit 9b088ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rust/src/ftp/ftp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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,
}
}
Expand Down

0 comments on commit 9b088ed

Please sign in to comment.