diff options
Diffstat (limited to 'source/utils/smbpasswd.c')
-rw-r--r-- | source/utils/smbpasswd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/utils/smbpasswd.c b/source/utils/smbpasswd.c index 74480f5fc53..90c3ce4d2e2 100644 --- a/source/utils/smbpasswd.c +++ b/source/utils/smbpasswd.c @@ -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); |