svn commit: samba r17361 - in
branches/SAMBA_4_0/source/smb_server/smb: .
metze at samba.org
metze at samba.org
Tue Aug 1 10:42:04 GMT 2006
Author: metze
Date: 2006-08-01 10:42:03 +0000 (Tue, 01 Aug 2006)
New Revision: 17361
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17361
Log:
check that file handles are only accessable
by the correct session in the SMB frontend server
metze
Modified:
branches/SAMBA_4_0/source/smb_server/smb/request.c
Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/smb/request.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/smb/request.c 2006-08-01 10:37:34 UTC (rev 17360)
+++ branches/SAMBA_4_0/source/smb_server/smb/request.c 2006-08-01 10:42:03 UTC (rev 17361)
@@ -668,6 +668,17 @@
return NULL;
}
+ /*
+ * For SMB tcons and sessions can be mixed!
+ * But we need to make sure that file handles
+ * are only accessed by the opening session!
+ *
+ * So check if the handle is valid for the given session!
+ */
+ if (handle->session != req->session) {
+ return NULL;
+ }
+
return handle->ntvfs;
}
More information about the samba-cvs
mailing list