summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-10-21 18:05:48 -0700
committerJeremy Allison <jra@samba.org>2008-10-21 18:05:48 -0700
commit4e9db0b1004aedf9eef69b9361ed6d9e69897a1e (patch)
tree9b6a40d9ca106e176b91a123f5892fe73a1d3bfc /source3/utils/net_rpc.c
parentf36e51617c7bd316f3ef393532bbc169895d6a66 (diff)
downloadsamba-4e9db0b1004aedf9eef69b9361ed6d9e69897a1e.tar.gz
samba-4e9db0b1004aedf9eef69b9361ed6d9e69897a1e.tar.bz2
samba-4e9db0b1004aedf9eef69b9361ed6d9e69897a1e.zip
Cope with MAXIMUM_ALLOWED_ACCESS requests when opening handles.
Jeremy.
Diffstat (limited to 'source3/utils/net_rpc.c')
-rw-r--r--source3/utils/net_rpc.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 5f5a21dfbb..94feeafa69 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -3956,17 +3956,6 @@ static void free_user_token(NT_USER_TOKEN *token)
SAFE_FREE(token->user_sids);
}
-static bool is_sid_in_token(NT_USER_TOKEN *token, DOM_SID *sid)
-{
- int i;
-
- for (i=0; i<token->num_sids; i++) {
- if (sid_compare(sid, &token->user_sids[i]) == 0)
- return true;
- }
- return false;
-}
-
static void add_sid_to_token(NT_USER_TOKEN *token, DOM_SID *sid)
{
if (is_sid_in_token(token, sid))