Skip to content

Commit

Permalink
rust: fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
inashivb authored and victorjulien committed Jul 22, 2023
1 parent e25082c commit 71ebd0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/src/dcerpc/dcerpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ impl DCERPCState {
if let Some(ref mut bind) = self.bind {
let mut uuid_internal_id = 0;
for r in back.ctxitems.iter() {
for mut uuid in bind.uuid_list.iter_mut() {
for uuid in bind.uuid_list.iter_mut() {
if uuid.internal_id == uuid_internal_id {
uuid.result = r.ack_result;
if uuid.result != 0 {
Expand Down
4 changes: 2 additions & 2 deletions rust/src/ssh/ssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl SSHState {
fn parse_record(
&mut self, mut input: &[u8], resp: bool, pstate: *mut std::os::raw::c_void,
) -> AppLayerResult {
let (mut hdr, ohdr) = if !resp {
let (hdr, ohdr) = if !resp {
(&mut self.transaction.cli_hdr, &self.transaction.srv_hdr)
} else {
(&mut self.transaction.srv_hdr, &self.transaction.cli_hdr)
Expand Down Expand Up @@ -276,7 +276,7 @@ impl SSHState {
fn parse_banner(
&mut self, input: &[u8], resp: bool, pstate: *mut std::os::raw::c_void,
) -> AppLayerResult {
let mut hdr = if !resp {
let hdr = if !resp {
&mut self.transaction.cli_hdr
} else {
&mut self.transaction.srv_hdr
Expand Down

0 comments on commit 71ebd0b

Please sign in to comment.