Skip to content

Commit a91d507

Browse files
committed
tests/fingerprint: increase likelihood of successful failure
Mangle the entire fingerprint to the same value.
1 parent 5ab0fd6 commit a91d507

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stun-types/src/message.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1746,7 +1746,10 @@ mod tests {
17461746
let mut msg = Message::builder_request(BINDING);
17471747
msg.add_fingerprint().unwrap();
17481748
let mut bytes = msg.build();
1749+
bytes[24] = 0x80;
17491750
bytes[25] = 0x80;
1751+
bytes[26] = 0x80;
1752+
bytes[27] = 0x80;
17501753
assert!(matches!(
17511754
Message::from_bytes(&bytes),
17521755
Err(StunParseError::FingerprintMismatch)

0 commit comments

Comments
 (0)