[SAMSRV] SamrChangePasswordUser: Check StoredLmEmpty and StoredNtEmpty instead of checking StoredNtEmpty twice

This commit is contained in:
Eric Kohl 2018-05-20 11:53:01 +02:00
parent d1c376f37d
commit b250eb5f3e

View file

@ -8306,7 +8306,7 @@ SamrChangePasswordUser(IN SAMPR_HANDLE UserHandle,
}
/* Check if we can change the password at this time */
if ((StoredNtEmpty == FALSE) || (StoredNtEmpty == FALSE))
if ((StoredLmEmpty == FALSE) || (StoredNtEmpty == FALSE))
{
/* Get fixed domain data */
Length = sizeof(SAM_DOMAIN_FIXED_DATA);