diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/msdfs.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index d0438b01af..e66c13ab93 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -128,10 +128,14 @@ static BOOL parse_processed_dfs_path(char* pathname, struct dfs_path* pdp, BOOL static BOOL create_conn_struct( connection_struct *conn, int snum, char *path) { + pstring connpath; + ZERO_STRUCTP(conn); conn->service = snum; - conn->connectpath = path; - pstring_sub(conn->connectpath , "%S", lp_servicename(snum)); + pstrcpy(connpath, path); + pstring_sub(connpath , "%S", lp_servicename(snum)); + + string_set(&conn->connectpath, connpath); /* needed for smbd_vfs_init() */ |