r5246: We can't use a pointer to struct lsa_info until is has been
authorTim Potter <tpot@samba.org>
Sun, 6 Feb 2005 01:12:15 +0000 (01:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:55:34 +0000 (10:55 -0500)
initialised.  Fix for bugzilla #2315.  Can the privileges dude(s)
please verify this?

source/rpc_server/srv_lsa_nt.c

index da00d2d6c4386172a129b4003c2eb215de6540ce..5b92b65edd42d315260f1d393c80a30e1cf8d16a 100644 (file)
@@ -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. */