summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2001-05-10 20:05:06 +0000
committerGerald Carter <jerry@samba.org>2001-05-10 20:05:06 +0000
commit6dd8c06ce9dcd5896a00ad99e81d6e9e9a5f4296 (patch)
tree7d38265a8de14dccadafe5ad91f57731d393156d /source3
parent6e41b74e6d46a136ef9f7178d2d3cb1d3b4fe8f5 (diff)
downloadsamba-6dd8c06ce9dcd5896a00ad99e81d6e9e9a5f4296.tar.gz
samba-6dd8c06ce9dcd5896a00ad99e81d6e9e9a5f4296.tar.bz2
samba-6dd8c06ce9dcd5896a00ad99e81d6e9e9a5f4296.zip
Should be faliing on False and not True. Bad check on return value
(This used to be commit 5be97aacf4db43a91562b77f010850afb818ac05)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_samr_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index e4289dd457..71b50a359e 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -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;