summaryrefslogtreecommitdiff
path: root/source4/ntvfs/simple
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ntvfs/simple')
-rw-r--r--source4/ntvfs/simple/vfs_simple.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ntvfs/simple/vfs_simple.c b/source4/ntvfs/simple/vfs_simple.c
index 1198cafbe9..ad06a95041 100644
--- a/source4/ntvfs/simple/vfs_simple.c
+++ b/source4/ntvfs/simple/vfs_simple.c
@@ -54,10 +54,10 @@ static NTSTATUS svfs_connect(struct ntvfs_module_context *ntvfs,
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;