summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-08-30 14:00:50 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-09-11 18:46:10 +1000
commit6d78e11e17b80bc932e5f4fb1ff6b27909f405d0 (patch)
tree8af514c1f956aa589bbe6ee7de9fe9e3d6080c6b /source3/rpc_server
parent8ff6bc2350894924ad362e0f058a24de3e459270 (diff)
downloadsamba-6d78e11e17b80bc932e5f4fb1ff6b27909f405d0.tar.gz
samba-6d78e11e17b80bc932e5f4fb1ff6b27909f405d0.tar.bz2
samba-6d78e11e17b80bc932e5f4fb1ff6b27909f405d0.zip
libcli/security make sec_privilege_id() return SEC_PRIV_INVALID on failure.
Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_lsa_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index 684c719e11..04e8d1970c 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -2422,7 +2422,7 @@ NTSTATUS _lsa_LookupPrivValue(struct pipes_struct *p,
r->out.luid->low = sec_privilege_id(name);
r->out.luid->high = 0;
- if (r->out.luid->low == -1) {
+ if (r->out.luid->low == SEC_PRIV_INVALID) {
return NT_STATUS_NO_SUCH_PRIVILEGE;
}
return NT_STATUS_OK;