]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: spelling fixes
authorVictor Julien <vjulien@oisf.net>
Mon, 8 May 2023 09:42:53 +0000 (11:42 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 8 May 2023 09:59:33 +0000 (11:59 +0200)
Thanks to Josh Soref.

rust/src/ffi/hashing.rs
rust/src/smb/events.rs
rust/src/smb/smb.rs

index 69745c1478e2e9f37f1d93828739cae80a0e1f36..59c7c9d3e97077c9998d01a646f5267835fcc586 100644 (file)
@@ -209,7 +209,7 @@ unsafe fn finalize<D: Digest>(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() {
index 4a1d30e9cdd77db2550b0e836cf7077a9ff82ad5..ec793543a7ddca45d5f6e1f7e2128c1f1f61573a 100644 (file)
@@ -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,
index 4d151df0afeb755baff9c99765f69313ebc5971e..86a20f634c70c840e584aa3de680f3f427197f9d 100644 (file)
@@ -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);