From b8125663d90d9748b71a25a06a357167958dd18e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 3 Nov 2008 21:55:05 +0100 Subject: Make "inbuf" a talloc child of "smb_request" for normal smb requests This is necessary if we want to keep the whole smb_request for deferred ops. The explicit settings of req->inbuf will be removed once all those deferring operations are converted to store the whole request and not just the inbuf. --- source3/smbd/blocking.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/smbd/blocking.c') diff --git a/source3/smbd/blocking.c b/source3/smbd/blocking.c index 78a63dcbb21..f4e2b69d6b7 100644 --- a/source3/smbd/blocking.c +++ b/source3/smbd/blocking.c @@ -263,6 +263,7 @@ static void reply_lockingX_success(blocking_lock_record *blr) } init_smb_request(req, (uint8 *)blr->inbuf, 0, blr->encrypted); + req->inbuf = (uint8_t *)(blr->inbuf); reply_outbuf(req, 2, 0); /* @@ -543,6 +544,7 @@ static bool process_trans2(blocking_lock_record *blr) } init_smb_request(req, (uint8 *)blr->inbuf, 0, blr->encrypted); + req->inbuf = (uint8_t *)(blr->inbuf); SCVAL(req->inbuf, smb_com, SMBtrans2); SSVAL(params,0,0); -- cgit v1.2.1