[SCM] Samba Shared Repository - branch master updated -
release-4-0-0alpha7-1519-g6c935f9
Jeremy Allison
jra at samba.org
Sat May 9 00:09:59 GMT 2009
The branch, master has been updated
via 6c935f95b3d4aaf0922c5a7baf59c1e8224c019a (commit)
from a3873bca516e0f89302409c89910561707360d14 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 6c935f95b3d4aaf0922c5a7baf59c1e8224c019a
Author: Tim Prouty <tprouty at samba.org>
Date: Wed Mar 25 00:24:55 2009 +0000
s3: Fix chained sesssetupAndX/tconn messages
A sesssetupAndX chained with a tconn will not correctly set the TID in
the response header. I'm seeing an XP client send this chained
sesssetup/tconn when samba has security = share. Samba's current
behavior is to return a TID of 0 in the smb header rather than the
actual TID. This patch also updates the UID in the header as well.
-----------------------------------------------------------------------
Summary of changes:
source3/smbd/process.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 487358d..0647b99 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -1617,6 +1617,13 @@ void chain_reply(struct smb_request *req)
}
req->outbuf = NULL;
} else {
+ /*
+ * Update smb headers where subsequent chained commands
+ * may have updated them.
+ */
+ SCVAL(req->chain_outbuf, smb_tid, CVAL(req->outbuf, smb_tid));
+ SCVAL(req->chain_outbuf, smb_uid, CVAL(req->outbuf, smb_uid));
+
if (!smb_splice_chain(&req->chain_outbuf,
CVAL(req->outbuf, smb_com),
CVAL(req->outbuf, smb_wct),
--
Samba Shared Repository
More information about the samba-cvs
mailing list