mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Make sure to initaliase SAM_ACCOUNT pointers to NULL, otherwise pdb_init_sam()
fails.
Andrew Bartlett
(This used to be commit 56009ffbaa
)
This commit is contained in:
parent
e76d514f57
commit
93d25c293f
@ -92,7 +92,7 @@ NTSTATUS pdb_init_sam_talloc(TALLOC_CTX *mem_ctx, SAM_ACCOUNT **user)
|
||||
if (*user != NULL) {
|
||||
DEBUG(0,("pdb_init_sam: SAM_ACCOUNT was non NULL\n"));
|
||||
#if 0
|
||||
smb_panic("NULL pointer passed to pdb_init_sam\n");
|
||||
smb_panic("non-NULL pointer passed to pdb_init_sam\n");
|
||||
#endif
|
||||
return NT_STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
@ -750,7 +750,7 @@ DOM_SID *local_uid_to_sid(DOM_SID *psid, uid_t uid)
|
||||
{
|
||||
extern DOM_SID global_sam_sid;
|
||||
struct passwd *pass;
|
||||
SAM_ACCOUNT *sam_user;
|
||||
SAM_ACCOUNT *sam_user = NULL;
|
||||
|
||||
sid_copy(psid, &global_sam_sid);
|
||||
|
||||
@ -786,7 +786,7 @@ BOOL local_sid_to_uid(uid_t *puid, DOM_SID *psid, enum SID_NAME_USE *name_type)
|
||||
uint32 rid;
|
||||
fstring str;
|
||||
struct passwd *pass;
|
||||
SAM_ACCOUNT *sam_user;
|
||||
SAM_ACCOUNT *sam_user = NULL;
|
||||
|
||||
*name_type = SID_NAME_UNKNOWN;
|
||||
|
||||
|
@ -2719,7 +2719,7 @@ NTSTATUS _samr_query_aliasmem(pipes_struct *p, SAMR_Q_QUERY_ALIASMEM *q_u, SAMR_
|
||||
fstring alias_sid_str;
|
||||
DOM_SID temp_sid;
|
||||
|
||||
SAM_ACCOUNT *sam_user;
|
||||
SAM_ACCOUNT *sam_user = NULL;
|
||||
BOOL check;
|
||||
|
||||
/* find the policy handle. open a policy on it. */
|
||||
@ -2815,7 +2815,7 @@ NTSTATUS _samr_query_groupmem(pipes_struct *p, SAMR_Q_QUERY_GROUPMEM *q_u, SAMR_
|
||||
uint32 *rid=NULL;
|
||||
uint32 *attr=NULL;
|
||||
|
||||
SAM_ACCOUNT *sam_user;
|
||||
SAM_ACCOUNT *sam_user = NULL;
|
||||
BOOL check;
|
||||
|
||||
|
||||
@ -2904,7 +2904,7 @@ NTSTATUS _samr_add_aliasmem(pipes_struct *p, SAMR_Q_ADD_ALIASMEM *q_u, SAMR_R_AD
|
||||
uint32 rid;
|
||||
GROUP_MAP map;
|
||||
NTSTATUS ret;
|
||||
SAM_ACCOUNT *sam_user;
|
||||
SAM_ACCOUNT *sam_user = NULL;
|
||||
BOOL check;
|
||||
|
||||
/* Find the policy handle. Open a policy on it. */
|
||||
|
Loading…
Reference in New Issue
Block a user