1
0
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:
Volker Lendecke 2006-02-27 21:19:58 +00:00 committed by Gerald (Jerry) Carter
parent 0295ed3d5c
commit 76c100834d

View File

@ -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;