diff options
author | Tim Potter <tpot@samba.org> | 2005-02-06 01:12:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:55:34 -0500 |
commit | d602fc7bc156dd18637cfbc7b57f793718ff8e56 (patch) | |
tree | edd68215ec8bba4cde44ee86ce97389259430c3d | |
parent | f221832d9a4e15383a0270c7e1fbc7736b25f4ee (diff) | |
download | samba-d602fc7bc156dd18637cfbc7b57f793718ff8e56.tar.gz samba-d602fc7bc156dd18637cfbc7b57f793718ff8e56.tar.bz2 samba-d602fc7bc156dd18637cfbc7b57f793718ff8e56.zip |
r5246: We can't use a pointer to struct lsa_info until is has been
initialised. Fix for bugzilla #2315. Can the privileges dude(s)
please verify this?
(This used to be commit bc4f884104c04f7c9ab7d370586115a9328ce9b1)
-rw-r--r-- | source3/rpc_server/srv_lsa_nt.c | 2 |
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 da00d2d6c4..5b92b65edd 100644 --- a/source3/rpc_server/srv_lsa_nt.c +++ b/source3/rpc_server/srv_lsa_nt.c @@ -968,7 +968,7 @@ NTSTATUS _lsa_create_account(pipes_struct *p, LSA_Q_CREATEACCOUNT *q_u, LSA_R_CR if ( !nt_token_check_domain_rid( p->pipe_user.nt_user_token, DOMAIN_GROUP_RID_ADMINS ) ) return NT_STATUS_ACCESS_DENIED; - if ( is_privileged_sid( &info->sid ) ) + if ( is_privileged_sid( &q_u->sid.sid ) ) return NT_STATUS_OBJECT_NAME_COLLISION; /* associate the user/group SID with the (unique) handle. */ |