mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r13727: Fix a segfault
This commit is contained in:
parent
0295ed3d5c
commit
76c100834d
@ -342,10 +342,14 @@ static NTSTATUS pdb_default_create_user(struct pdb_methods *methods,
|
||||
TALLOC_CTX *tmp_ctx, const char *name,
|
||||
uint32 acb_info, uint32 *rid)
|
||||
{
|
||||
struct samu *sam_pass = NULL;
|
||||
struct samu *sam_pass;
|
||||
NTSTATUS status;
|
||||
struct passwd *pwd;
|
||||
|
||||
if ((sam_pass = TALLOC_ZERO_P(tmp_ctx, struct samu)) == NULL) {
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
if ( !(pwd = Get_Pwnam_alloc(tmp_ctx, name)) ) {
|
||||
pstring add_script;
|
||||
int add_ret;
|
||||
|
Loading…
Reference in New Issue
Block a user