From e84ab1b35fc6d1b1fbb4c02102be96db3e08cb83 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 11 Sep 2010 20:38:15 +1000 Subject: s4-privs Fix enum privileges in LSARPC server We were returning the index, not the LUID value Andrew Bartlett --- source4/rpc_server/lsa/dcesrv_lsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') 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++; -- cgit