From 898f7c9603b1a9057f0a65b368c569d52b627238 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 3 Oct 2010 17:28:10 +0200 Subject: s3: Remove smbd_server_conn from smb2 receive_unlock_msg --- source3/smbd/smb2_lock.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/smb2_lock.c b/source3/smbd/smb2_lock.c index 8e4b6a46ac..80ce2bc8c1 100644 --- a/source3/smbd/smb2_lock.c +++ b/source3/smbd/smb2_lock.c @@ -454,8 +454,16 @@ static void received_unlock_msg(struct messaging_context *msg, struct server_id server_id, DATA_BLOB *data) { + struct smbd_server_connection *sconn; + DEBUG(10,("received_unlock_msg (SMB2)\n")); - process_blocking_lock_queue_smb2(smbd_server_conn, timeval_current()); + + sconn = msg_ctx_to_sconn(msg); + if (sconn == NULL) { + DEBUG(1, ("could not find sconn\n")); + return; + } + process_blocking_lock_queue_smb2(sconn, timeval_current()); } /**************************************************************** -- cgit