From c5d27995434910075185e6b290ca933a7ea8afa6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 27 Sep 2010 03:38:14 +0200 Subject: s3: Remove smbd_server_conn from file_new and file_free --- source3/smbd/files.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/files.c b/source3/smbd/files.c index e903ab3f50..4ba1052d05 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -113,7 +113,7 @@ NTSTATUS file_new(struct smb_request *req, connection_struct *conn, TALLOC_FREE(fsp->fh); } - DLIST_ADD(smbd_server_conn->files, fsp); + DLIST_ADD(conn->sconn->files, fsp); DEBUG(5,("allocated file structure %d, fnum = %d (%d used)\n", i, fsp->fnum, files_used)); @@ -417,7 +417,7 @@ void file_sync_all(connection_struct *conn) void file_free(struct smb_request *req, files_struct *fsp) { - DLIST_REMOVE(smbd_server_conn->files, fsp); + DLIST_REMOVE(fsp->conn->sconn->files, fsp); TALLOC_FREE(fsp->fake_file_handle); -- cgit