summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index 98afd77bcc..b1e89bab88 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -370,7 +370,7 @@ bool file_find_subpath(files_struct *dir_fsp)
dlen = strlen(d_fullname);
- for (fsp=smbd_server_conn->files;fsp;fsp=fsp->next) {
+ for (fsp=dir_fsp->conn->sconn->files; fsp; fsp=fsp->next) {
char *d1_fullname;
if (fsp == dir_fsp) {