summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index d40c6d2c6e..8645c12bce 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/passdb/pdb_interface.c
@@ -346,7 +346,7 @@ static NTSTATUS pdb_default_create_user(struct pdb_methods *methods,
NTSTATUS status;
struct passwd *pwd;
- if ((sam_pass = TALLOC_ZERO_P(tmp_ctx, struct samu)) == NULL) {
+ if ((sam_pass = samu_new(tmp_ctx)) == NULL) {
return NT_STATUS_NO_MEMORY;
}