summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-27 03:46:12 +0200
committerVolker Lendecke <vl@samba.org>2010-09-28 07:36:16 +0200
commit9fc9ff9bfac604007440776d06b71eba5b5005e5 (patch)
tree7ab55e89503a2b2a2fbab474663d224fd079678e /source3/smbd
parent25ca1cd1a85ca5bd99acfd2f54067c397d8fcb13 (diff)
downloadsamba-9fc9ff9bfac604007440776d06b71eba5b5005e5.tar.gz
samba-9fc9ff9bfac604007440776d06b71eba5b5005e5.tar.bz2
samba-9fc9ff9bfac604007440776d06b71eba5b5005e5.zip
s3: Remove smbd_server_conn from file_close_user
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/files.c4
-rw-r--r--source3/smbd/reply.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index f24d903daa..a50bd950a5 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -209,11 +209,11 @@ void file_init(void)
Close files open by a specified vuid.
****************************************************************************/
-void file_close_user(int vuid)
+void file_close_user(struct smbd_server_connection *sconn, int vuid)
{
files_struct *fsp, *next;
- for (fsp=smbd_server_conn->files;fsp;fsp=next) {
+ for (fsp=sconn->files; fsp; fsp=next) {
next=fsp->next;
if (fsp->vuid == vuid) {
close_file(NULL, fsp, SHUTDOWN_CLOSE);
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 8663c68f96..3b4ea09336 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -2073,7 +2073,7 @@ void reply_ulogoffX(struct smb_request *req)
/* in user level security we are supposed to close any files
open by this user */
if ((vuser != NULL) && (lp_security() != SEC_SHARE)) {
- file_close_user(req->vuid);
+ file_close_user(sconn, req->vuid);
}
invalidate_vuid(sconn, req->vuid);