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 b1e89bab88..ef0da8f1e4 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -407,7 +407,7 @@ void file_sync_all(connection_struct *conn)
{
files_struct *fsp, *next;
- for (fsp=smbd_server_conn->files;fsp;fsp=next) {
+ for (fsp=conn->sconn->files; fsp; fsp=next) {
next=fsp->next;
if ((conn == fsp->conn) && (fsp->fh->fd != -1)) {
sync_file(conn, fsp, True /* write through */);