Unverified Commit 4201773c authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #488 from racke/pr/salt-warnings by racke

Prevent warning on undefined salt variable.
parents b69f3ac4 71ec6da1
......@@ -309,6 +309,8 @@ my %fingerprint_hashes = (
'md5' => sub {
my ($pwd, $salt) = @_;
$salt = '' unless defined $salt;
# salt parameter is not used for MD5 hashes
my $fingerprint = Digest::MD5::md5_hex($pwd);
my $match = ($fingerprint eq $salt) ? "yes" : "no";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment