Author: tpot Date: 2005-02-06 01:12:15 +0000 (Sun, 06 Feb 2005) New Revision: 5246
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5246 Log: 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? Modified: branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c trunk/source/rpc_server/srv_lsa_nt.c Changeset: Modified: branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c =================================================================== --- branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c 2005-02-06 00:50:55 UTC (rev 5245) +++ branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c 2005-02-06 01:12:15 UTC (rev 5246) @@ -968,7 +968,7 @@ 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. */ Modified: trunk/source/rpc_server/srv_lsa_nt.c =================================================================== --- trunk/source/rpc_server/srv_lsa_nt.c 2005-02-06 00:50:55 UTC (rev 5245) +++ trunk/source/rpc_server/srv_lsa_nt.c 2005-02-06 01:12:15 UTC (rev 5246) @@ -968,7 +968,7 @@ 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. */