mirror of
https://github.com/samba-team/samba.git
synced 2025-03-14 00:58:38 +03:00
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>
This commit is contained in:
parent
555b3d18d2
commit
d7e66e59b0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user