mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3:smbd/oplock: pass sconn as private_data to process_oplock_async_level2_break_message()
metze
This commit is contained in:
parent
da4b503581
commit
fb81772eed
@ -436,18 +436,18 @@ void process_oplock_async_level2_break_message(struct messaging_context *msg_ctx
|
||||
struct server_id src,
|
||||
DATA_BLOB *data)
|
||||
{
|
||||
struct smbd_server_connection *sconn;
|
||||
struct share_mode_entry msg;
|
||||
files_struct *fsp;
|
||||
struct smbd_server_connection *sconn =
|
||||
talloc_get_type(private_data,
|
||||
struct smbd_server_connection);
|
||||
|
||||
if (data->data == NULL) {
|
||||
DEBUG(0, ("Got NULL buffer\n"));
|
||||
if (sconn == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
sconn = msg_ctx_to_sconn(msg_ctx);
|
||||
if (sconn == NULL) {
|
||||
DEBUG(1, ("could not find sconn\n"));
|
||||
if (data->data == NULL) {
|
||||
DEBUG(0, ("Got NULL buffer\n"));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -936,7 +936,7 @@ bool init_oplocks(struct smbd_server_connection *sconn)
|
||||
|
||||
messaging_register(sconn->msg_ctx, sconn, MSG_SMB_BREAK_REQUEST,
|
||||
process_oplock_break_message);
|
||||
messaging_register(sconn->msg_ctx, NULL, MSG_SMB_ASYNC_LEVEL2_BREAK,
|
||||
messaging_register(sconn->msg_ctx, sconn, MSG_SMB_ASYNC_LEVEL2_BREAK,
|
||||
process_oplock_async_level2_break_message);
|
||||
messaging_register(sconn->msg_ctx, NULL, MSG_SMB_BREAK_RESPONSE,
|
||||
process_oplock_break_response);
|
||||
|
Loading…
Reference in New Issue
Block a user