summaryrefslogtreecommitdiffstats
path: root/source/rpc_server
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-03-22 14:20:25 +0000
committerGerald Carter <jerry@samba.org>2005-03-22 14:20:25 +0000
commit43446fa9df989075146aa8d61aabb226922b8909 (patch)
tree411c3d29cce7abd7c2cc8754be1b7700ffd717c5 /source/rpc_server
parent41ce18d8036868f4464a06b379fc78ebd48bfd10 (diff)
downloadsamba-43446fa9df989075146aa8d61aabb226922b8909.tar.gz
samba-43446fa9df989075146aa8d61aabb226922b8909.tar.xz
samba-43446fa9df989075146aa8d61aabb226922b8909.zip
r5943: remove unneccessary se_priv_copy()
Diffstat (limited to 'source/rpc_server')
-rw-r--r--source/rpc_server/srv_samr_nt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/rpc_server/srv_samr_nt.c b/source/rpc_server/srv_samr_nt.c
index 139960f6613..9e75dd6f7ce 100644
--- a/source/rpc_server/srv_samr_nt.c
+++ b/source/rpc_server/srv_samr_nt.c
@@ -3821,7 +3821,6 @@ NTSTATUS _samr_delete_dom_user(pipes_struct *p, SAMR_Q_DELETE_DOM_USER *q_u, SAM
DOM_SID user_sid;
SAM_ACCOUNT *sam_pass=NULL;
uint32 acc_granted;
- SE_PRIV se_rights;
BOOL can_add_accounts;
BOOL ret;
@@ -3847,8 +3846,7 @@ NTSTATUS _samr_delete_dom_user(pipes_struct *p, SAMR_Q_DELETE_DOM_USER *q_u, SAM
return NT_STATUS_NO_SUCH_USER;
}
- se_priv_copy( &se_rights, &se_add_users );
- can_add_accounts = user_has_privileges( p->pipe_user.nt_user_token, &se_rights );
+ can_add_accounts = user_has_privileges( p->pipe_user.nt_user_token, &se_add_users );
/******** BEGIN SeAddUsers BLOCK *********/