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>
Thu, 9 Sep 2010 04:46:01 +0000 (14:46 +1000)
commita13cd19e72800b343625ee0ec68614adbcbcf1c1
tree51e6bb23f5c93614ff43e5d61823a49eef9d96ca
parent5506b16c1478f2bb6dbb23cf94eec5b2c1e39987
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