diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/conn_msg.c | 6 | ||||
-rw-r--r-- | source3/smbd/process.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/conn_msg.c b/source3/smbd/conn_msg.c index b0c968a680..96171e2aa1 100644 --- a/source3/smbd/conn_msg.c +++ b/source3/smbd/conn_msg.c @@ -36,12 +36,12 @@ void msg_force_tdis(struct messaging_context *msg, struct server_id server_id, DATA_BLOB *data) { - struct smbd_server_connection *sconn; const char *sharename = (const char *)data->data; + struct smbd_server_connection *sconn = + talloc_get_type(private_data, + struct smbd_server_connection); - sconn = msg_ctx_to_sconn(msg); if (sconn == NULL) { - DEBUG(1, ("could not find sconn\n")); return; } diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 3b3c1040ce..cb04cea3e2 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -3135,7 +3135,7 @@ void smbd_process(struct tevent_context *ev_ctx, exit_server("Failed to init oplocks"); /* register our message handlers */ - messaging_register(sconn->msg_ctx, NULL, + messaging_register(sconn->msg_ctx, sconn, MSG_SMB_FORCE_TDIS, msg_force_tdis); messaging_register(sconn->msg_ctx, sconn, MSG_SMB_CLOSE_FILE, msg_close_file); |