summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-09-11 20:38:15 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-09-11 22:32:43 +1000
commite84ab1b35fc6d1b1fbb4c02102be96db3e08cb83 (patch)
tree8ba8879df1d719b300506aaf8ebdb934c19211bb /source4
parent07cf3ba5c46bf43de7b1ce3278203e357bed19dd (diff)
downloadsamba-e84ab1b35fc6d1b1fbb4c02102be96db3e08cb83.tar.gz
samba-e84ab1b35fc6d1b1fbb4c02102be96db3e08cb83.tar.bz2
samba-e84ab1b35fc6d1b1fbb4c02102be96db3e08cb83.zip
s4-privs Fix enum privileges in LSARPC server
We were returning the index, not the LUID value Andrew Bartlett
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/lsa/dcesrv_lsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c
index 81ad6f7a92..74c28595c3 100644
--- a/source4/rpc_server/lsa/dcesrv_lsa.c
+++ b/source4/rpc_server/lsa/dcesrv_lsa.c
@@ -312,7 +312,7 @@ static NTSTATUS dcesrv_lsa_EnumPrivs(struct dcesrv_call_state *dce_call, TALLOC_
return NT_STATUS_NO_MEMORY;
}
e = &r->out.privs->privs[r->out.privs->count];
- e->luid.low = i;
+ e->luid.low = priv;
e->luid.high = 0;
e->name.string = privname;
r->out.privs->count++;