summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 19c9870ac0..ad46c66b02 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -3231,7 +3231,7 @@ void reply_lockread(struct smb_request *req)
* Note that the requested lock size is unaffected by max_recv.
*/
- br_lck = do_lock(smbd_messaging_context(),
+ br_lck = do_lock(req->sconn->msg_ctx,
fsp,
(uint64_t)req->smbpid,
(uint64_t)numtoread,