Skip to content

Commit

Permalink
validation/policy: rename var (#9917)
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw authored Nov 24, 2023
1 parent 0b0791e commit fd65841
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rust/cryptography-x509-validation/src/policy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ impl Subject<'_> {
(GeneralName::DNSName(pattern), Self::DNS(name)) => {
DNSPattern::new(pattern.0).map_or(false, |p| p.matches(name))
}
(GeneralName::IPAddress(pattern), Self::IP(name)) => {
IPAddress::from_bytes(pattern).map_or(false, |addr| addr == *name)
(GeneralName::IPAddress(addr), Self::IP(name)) => {
IPAddress::from_bytes(addr).map_or(false, |addr| addr == *name)
}
_ => false,
}
Expand Down

0 comments on commit fd65841

Please sign in to comment.