summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-09-16 09:23:54 +0200
committerMichael Adam <obnox@samba.org>2014-09-19 09:15:12 +0200
commitd7e66e59b080f7e29e46a469d1f63ca6183be501 (patch)
tree458b069d56981a659b0c49ecd89846edd3046a58
parent555b3d18d224a210907682ac1561bd91f9596810 (diff)
downloadsamba-d7e66e59b080f7e29e46a469d1f63ca6183be501.tar.gz
samba-d7e66e59b080f7e29e46a469d1f63ca6183be501.tar.xz
samba-d7e66e59b080f7e29e46a469d1f63ca6183be501.zip
s3:smbd: use fsp->conn->sconn->client->connections to send SMB1 oplock breaks
This means we use the first and only connection. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/smbd/oplock.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index d927d4c96b..17cb22e847 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -394,9 +394,14 @@ static void add_oplock_timeout_handler(files_struct *fsp)
static void send_break_message_smb1(files_struct *fsp, int level)
{
- struct smbXsrv_connection *xconn = fsp->conn->sconn->conn;
+ struct smbXsrv_connection *xconn = NULL;
char break_msg[SMB1_BREAK_MESSAGE_LENGTH];
+ /*
+ * For SMB1 we only have one connection
+ */
+ xconn = fsp->conn->sconn->client->connections;
+
new_break_message_smb1(fsp, level, break_msg);
show_msg(break_msg);