s3: Fix bug 7917: Yet another bug in chain_reply
authorVolker Lendecke <vl@samba.org>
Fri, 14 Jan 2011 15:43:00 +0000 (16:43 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 15 Jan 2011 16:27:09 +0000 (17:27 +0100)
Found by Michael Hanscho <samba@micha.priv.at> with a WinCE client.

source3/smbd/process.c

index 21b2c910401896fe7bcef2358bd03abbc0e197df..cbcbfadf3ce6f4ca4f0d96a69d97ea9da0ba5f33 100644 (file)
@@ -1856,8 +1856,8 @@ void chain_reply(struct smb_request *req)
                 * 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));
+               SSVAL(req->chain_outbuf, smb_tid, SVAL(req->outbuf, smb_tid));
+               SSVAL(req->chain_outbuf, smb_uid, SVAL(req->outbuf, smb_uid));
 
                if (!smb_splice_chain(&req->chain_outbuf,
                                      CVAL(req->outbuf, smb_com),