libcli/security Make sec_privilege_from_index() return SEC_PRIV_INVALID on failure
authorAndrew Bartlett <abartlet@samba.org>
Mon, 30 Aug 2010 23:28:51 +0000 (09:28 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 11 Sep 2010 08:46:11 +0000 (18:46 +1000)
commita32cdadb7cbff255b5a0133a3bb54352d0d42f61
tree8d8ac093e65941ebd57ced9a8f30f991fbcb4c6c
parent0b41ef789575e5194e9b499cf5fe0df4616f1bb8
libcli/security Make sec_privilege_from_index() return SEC_PRIV_INVALID on failure

This is clearer and more consistent than using a magic -1 return

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
libcli/security/privileges.c
source4/rpc_server/lsa/dcesrv_lsa.c