From 09b49ee92f847a19ce06c54a0df553ed86cb6042 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 19 Nov 2004 20:55:54 +0000 Subject: r3882: Fix bug 2069 -- thanks to jason@ncac.gwu.edu (This used to be commit 5c9fd4d8963130829684469be172e859b3799e27) --- source3/utils/smbpasswd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') 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); -- cgit