Skip to content

Commit

Permalink
Fixed parsing of IKEv2 session SPIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
zlogic committed Sep 1, 2024
1 parent b108a7b commit 7403a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ikev2/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl Spi {
value.copy_from_slice(spi);
let value = u32::from_be_bytes(value);
Ok(Self::U32(value))
} else if spi.len() == 4 {
} else if spi.len() == 8 {
let mut value = [0u8; 8];
value.copy_from_slice(spi);
let value = u64::from_be_bytes(value);
Expand Down

0 comments on commit 7403a35

Please sign in to comment.