diff options
author | Jeremy Allison <jra@samba.org> | 2009-07-15 13:59:11 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-07-15 13:59:11 -0700 |
commit | 48a07321479c14a6618bb21302d27fd9606efbdd (patch) | |
tree | 05c8e1d8c0606b3e69009b6825c94db3b3880101 /source3 | |
parent | 377a97579bc9b733c5a6363c71498e2ecf894f02 (diff) | |
download | samba-48a07321479c14a6618bb21302d27fd9606efbdd.tar.gz samba-48a07321479c14a6618bb21302d27fd9606efbdd.tar.bz2 samba-48a07321479c14a6618bb21302d27fd9606efbdd.zip |
Fix bug #6551 - win98 clients cannot connect after server upgrade to samba-3.4.0.
The values of vuid and tid were not being correctly updated in the struct smb_request
when passed to chain_reply inside sessionsetupX and tconX.
Jeremy.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/reply.c | 2 | ||||
-rw-r--r-- | source3/smbd/sesssetup.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 4d0a2b8c97..a6e35c7342 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -856,6 +856,7 @@ void reply_tcon_and_X(struct smb_request *req) END_PROFILE(SMBtconX); + req->tid = conn->cnum; chain_reply(req); return; } @@ -2076,6 +2077,7 @@ void reply_ulogoffX(struct smb_request *req) DEBUG( 3, ( "ulogoffX vuid=%d\n", req->vuid ) ); END_PROFILE(SMBulogoffX); + req->vuid = UID_FIELD_INVALID; chain_reply(req); } diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 3988105fa4..2d2e5141ee 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -1807,6 +1807,7 @@ void reply_sesssetup_and_X(struct smb_request *req) SSVAL(req->outbuf,smb_uid,sess_vuid); SSVAL(req->inbuf,smb_uid,sess_vuid); + req->vuid = sess_vuid; if (!sconn->smb1.sessions.done_sesssetup) { sconn->smb1.sessions.max_send = |