summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-03 17:28:10 +0200
committerVolker Lendecke <vl@samba.org>2010-10-03 18:17:08 +0200
commit898f7c9603b1a9057f0a65b368c569d52b627238 (patch)
treeace50b2ef1f069dcf463a5fdead6155208874da4 /source3
parent554f5e7c6035577ab6463f12cc0e5b4a089cbc86 (diff)
downloadsamba-898f7c9603b1a9057f0a65b368c569d52b627238.tar.gz
samba-898f7c9603b1a9057f0a65b368c569d52b627238.tar.bz2
samba-898f7c9603b1a9057f0a65b368c569d52b627238.zip
s3: Remove smbd_server_conn from smb2 receive_unlock_msg
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/smb2_lock.c10
1 files changed, 9 insertions, 1 deletions
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());
}
/****************************************************************