Commit feae6a7b authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix.

parent efaf159d
......@@ -770,7 +770,8 @@ sub UpdateWindowsPassword()
my $new_wpswd = shift(@ARGV);
# Lets not do this if no changes.
if ($new_wpswd eq $target_user->w_pswd()) {
if (defined($target_user->w_pswd()) &&
$new_wpswd eq $target_user->w_pswd()) {
print "Password has not changed ...\n";
return 0;
}
......
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