Fix perl warnings

This commit is contained in:
Jamie Cameron
2017-06-10 12:46:33 -07:00
parent 6389fe1787
commit 041ed3ace4

View File

@@ -242,12 +242,12 @@ if (!&check_blowfish()) {
# SHA1
if (!&check_sha512()) {
my $shash = &encrypt_sha512($passwd, $hash);
return 1 if ($shash eq $hash);
return 1 if ($shash && $shash eq $hash);
}
# Some other hashing, maybe supported by crypt
my $ohash = eval { crypt($passwd, $hash) };
return 1 if ($ohash eq $hash);
return 1 if ($ohash && $ohash eq $hash);
return 0;
}