summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_expand_msdfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/modules/vfs_expand_msdfs.c')
-rw-r--r--source3/modules/vfs_expand_msdfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_expand_msdfs.c b/source3/modules/vfs_expand_msdfs.c
index d6e25776f1..eaf96e0ae0 100644
--- a/source3/modules/vfs_expand_msdfs.c
+++ b/source3/modules/vfs_expand_msdfs.c
@@ -156,7 +156,7 @@ static char *expand_msdfs_target(TALLOC_CTX *ctx,
}
targethost = talloc_sub_advanced(ctx,
- lp_servicename(SNUM(conn)),
+ lp_servicename(talloc_tos(), SNUM(conn)),
conn->session_info->unix_info->unix_name,
conn->connectpath,
conn->session_info->unix_token->gid,