machine_account = lp_parm_bool(req->tcon->service, "cifs", "use_machine_account", False);
- private = talloc(req->tcon, struct cvfs_private);
+ private = talloc(ntvfs, struct cvfs_private);
if (!private) {
return NT_STATUS_NO_MEMORY;
}
struct cvfs_private *private = ntvfs->private_data;
talloc_free(private);
+ ntvfs->private_data = NULL;
return NT_STATUS_OK;
}
NT_STATUS_HAVE_NO_MEMORY(tcon->dev_type);
/* prepare the private state for this connection */
- private = talloc(tcon, struct ipc_private);
+ private = talloc(ntvfs, struct ipc_private);
NT_STATUS_HAVE_NO_MEMORY(private);
ntvfs->private_data = private;
NTSTATUS status;
char *logname = NULL;
- nprivates = talloc(req->tcon, struct nbench_private);
+ nprivates = talloc(ntvfs, struct nbench_private);
if (!nprivates) {
return NT_STATUS_NO_MEMORY;
}
struct smbsrv_tcon *tcon = req->tcon;
struct svfs_private *private;
- private = talloc(tcon, struct svfs_private);
+ private = talloc(ntvfs, struct svfs_private);
private->next_search_handle = 0;
- private->connectpath = talloc_strdup(tcon, lp_pathname(tcon->service));
+ private->connectpath = talloc_strdup(private, lp_pathname(tcon->service));
private->open_files = NULL;
private->search = NULL;
struct unixuid_private *private;
NTSTATUS status;
- private = talloc(req->tcon, struct unixuid_private);
+ private = talloc(ntvfs, struct unixuid_private);
if (!private) {
return NT_STATUS_NO_MEMORY;
}
NTSTATUS status;
talloc_free(private);
+ ntvfs->private_data = NULL;
status = ntvfs_next_disconnect(ntvfs, tcon);