summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/rpc_server/srvsvc/srvsvc_ntvfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/srvsvc/srvsvc_ntvfs.c b/source4/rpc_server/srvsvc/srvsvc_ntvfs.c
index 17c5f81e65..d95c307d16 100644
--- a/source4/rpc_server/srvsvc/srvsvc_ntvfs.c
+++ b/source4/rpc_server/srvsvc/srvsvc_ntvfs.c
@@ -127,7 +127,7 @@ NTSTATUS srvsvc_create_ntvfs_context(struct dcesrv_call_state *dce_call,
/* Invoke NTVFS connection hook */
tcon.tcon.level = RAW_TCON_TCON;
ZERO_STRUCT(tcon.tcon.in);
- tcon.tcon.in.service = share;
+ tcon.tcon.in.service = scfg->name;
status = ntvfs_connect(ntvfs_req, &tcon);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("srvsvc_create_ntvfs_context: NTVFS ntvfs_connect() failed!\n"));