summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-11-19 20:55:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:23 -0500
commit09b49ee92f847a19ce06c54a0df553ed86cb6042 (patch)
tree52cf8b6ebba407727de0d41ecb1e769a8324a150 /source3
parent9b8bedf2febd821c56adbef635559f3a1f299744 (diff)
downloadsamba-09b49ee92f847a19ce06c54a0df553ed86cb6042.tar.gz
samba-09b49ee92f847a19ce06c54a0df553ed86cb6042.tar.bz2
samba-09b49ee92f847a19ce06c54a0df553ed86cb6042.zip
r3882: Fix bug 2069 -- thanks to jason@ncac.gwu.edu
(This used to be commit 5c9fd4d8963130829684469be172e859b3799e27)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbpasswd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index 74480f5fc5..90c3ce4d2e 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/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);