From 18d5df99df1f8a1b13e98de8a3eb5a747e5d161d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 14 Jan 2011 16:43:00 +0100 Subject: [PATCH] s3: Fix bug 7917: Yet another bug in chain_reply Found by Michael Hanscho with a WinCE client. --- source3/smbd/process.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 1596c0d..f7b0f4c 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -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), -- 1.7.0.4