From d7e66e59b080f7e29e46a469d1f63ca6183be501 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 16 Sep 2014 09:23:54 +0200 Subject: 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 Reviewed-by: Michael Adam --- source3/smbd/oplock.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); -- cgit