1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

Should be faliing on False and not True. Bad check on return value

This commit is contained in:
Gerald Carter -
parent aba243ca08
commit 5be97aacf4

View File

@ -2205,7 +2205,7 @@ static BOOL set_user_info_23(SAM_USER_INFO_23 *id23, uint32 rid)
pdb_init_sam(&pwd);
pdb_init_sam(&new_pwd);
if (pdb_getsampwrid(pwd, rid)) {
if (!pdb_getsampwrid(pwd, rid)) {
pdb_free_sam(pwd);
pdb_free_sam(new_pwd);
return False;