diff options
-rw-r--r-- | source3/smbd/smb2_lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/smb2_lock.c b/source3/smbd/smb2_lock.c index 51cb5c6345..bd0dd21ad0 100644 --- a/source3/smbd/smb2_lock.c +++ b/source3/smbd/smb2_lock.c @@ -635,10 +635,10 @@ bool push_blocking_lock_request_smb2( struct byte_range_lock *br_lck, blr->blr_private = NULL; /* Add a pending lock record for this. */ - status = brl_lock(smbd_messaging_context(), + status = brl_lock(sconn->msg_ctx, br_lck, smblctx, - procid_self(), + sconn_server_id(sconn), offset, count, lock_type == READ_LOCK ? PENDING_READ_LOCK : PENDING_WRITE_LOCK, |