Skip to content

Commit

Permalink
fixup! Fixes #19525: Read base64 hash in nodeslist.conf
Browse files Browse the repository at this point in the history
Fixes #19525: Read base64 hash in nodeslist.conf
  • Loading branch information
amousset committed Jul 9, 2021
1 parent 4ff3aaf commit 49471d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions relay/sources/relayd/src/hashing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ mod tests {
);
assert!(Hash::from_str("").is_err());
assert!(Hash::from_str("sha256:").is_err());
assert!(Hash::from_str("sha256//").is_err());
assert!(Hash::from_str("sha256//#$%^&*").is_err());
assert!(Hash::from_str("sha256//abc").is_err());
assert!(Hash::from_str("sha256:test").is_err());
}

Expand Down

0 comments on commit 49471d6

Please sign in to comment.