From f9276fdf0010e16448e81a69203856e39d1862af Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 8 May 2023 11:42:53 +0200 Subject: [PATCH] rust: spelling fixes Thanks to Josh Soref. --- rust/src/ffi/hashing.rs | 4 ++-- rust/src/smb/events.rs | 2 +- rust/src/smb/smb.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rust/src/ffi/hashing.rs b/rust/src/ffi/hashing.rs index 69745c1478..59c7c9d3e9 100644 --- a/rust/src/ffi/hashing.rs +++ b/rust/src/ffi/hashing.rs @@ -209,7 +209,7 @@ unsafe fn finalize(digest: D, out: *mut u8, len: u32) { mod test { use super::*; - // A test around SCSha256 primarily to check that the ouput is + // A test around SCSha256 primarily to check that the output is // correctly copied into a C string. #[test] fn test_sha256() { @@ -229,7 +229,7 @@ mod test { } } - // A test around SCSha256 primarily to check that the ouput is + // A test around SCSha256 primarily to check that the output is // correctly copied into a C string. #[test] fn test_md5() { diff --git a/rust/src/smb/events.rs b/rust/src/smb/events.rs index 4a1d30e9cd..ec793543a7 100644 --- a/rust/src/smb/events.rs +++ b/rust/src/smb/events.rs @@ -46,7 +46,7 @@ pub enum SMBEvent { WriteRequestTooLarge, WriteQueueSizeExceeded, WriteQueueCntExceeded, - /// Unusal NTLMSSP fields order + /// Unusual NTLMSSP fields order UnusualNtlmsspOrder, /// Too many live transactions in one flow TooManyTransactions, diff --git a/rust/src/smb/smb.rs b/rust/src/smb/smb.rs index 4d151df0af..86a20f634c 100644 --- a/rust/src/smb/smb.rs +++ b/rust/src/smb/smb.rs @@ -603,7 +603,7 @@ impl SMBCommonHdr { pub fn from2_notree(r: &Smb2Record, rec_type: u32) -> SMBCommonHdr { // async responses do not have a tree id (even if the request has it) // making thus the match between the two impossible. - // Per spec, MessageId should be enough to identifiy a message request and response uniquely + // Per spec, MessageId should be enough to identify a message request and response uniquely // across all messages that are sent on the same SMB2 Protocol transport connection. // cf https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/ea4560b7-90da-4803-82b5-344754b92a79 let msg_id = match rec_type { @@ -858,7 +858,7 @@ impl SMBState { } SCLogDebug!("Found SMB TX: id {} ver:{} cmd:{} progress {}/{} type_data {:?}", tx.id, ver, _smbcmd, tx.request_done, tx.response_done, tx.type_data); - /* hack: apply flow file flags to file tx here to make sure its propegated */ + /* hack: apply flow file flags to file tx here to make sure its propagated */ if let Some(SMBTransactionTypeData::FILE(ref mut d)) = tx.type_data { tx.tx_data.update_file_flags(self.state_data.file_flags); d.update_file_flags(tx.tx_data.file_flags);