mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
r3882: Fix bug 2069 -- thanks to jason@ncac.gwu.edu
(This used to be commit 5c9fd4d8963130829684469be172e859b3799e27)
This commit is contained in:
parent
9b8bedf2fe
commit
09b49ee92f
@ -433,7 +433,8 @@ static int process_root(int local_flags)
|
||||
|
||||
pdb_init_sam(&sampass);
|
||||
ret = pdb_getsampwnam(sampass, user_name);
|
||||
if((sampass != False) && (pdb_get_lanman_passwd(sampass) == NULL)) {
|
||||
if((ret) &&
|
||||
(pdb_get_lanman_passwd(sampass) == NULL)) {
|
||||
local_flags |= LOCAL_SET_PASSWORD;
|
||||
}
|
||||
pdb_free_sam(&sampass);
|
||||
|
Loading…
x
Reference in New Issue
Block a user