r13756: use samu_new() rather than calling talloc() directly.
[abartlet/samba.git/.git] / source3 / passdb / pdb_interface.c
index d40c6d2c6eb0aa7f8b02b728721f8887397aa54d..8645c12bcecae2dd7cffe014d2dfae918783d361 100644 (file)
@@ -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;
        }