diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/lsa/dcesrv_lsa.c | 2 |
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 dedb21cd39..0a304d380c 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -300,7 +300,7 @@ static NTSTATUS dcesrv_lsa_EnumPrivs(struct dcesrv_call_state *dce_call, TALLOC_ i = *r->in.resume_handle; - while (((priv = sec_privilege_from_index(i)) != -1) && + while (((priv = sec_privilege_from_index(i)) != SEC_PRIV_INVALID) && r->out.privs->count < r->in.max_count) { struct lsa_PrivEntry *e; privname = sec_privilege_name(priv); |