1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

s3:smbd/conn_msg: pass smbd_server_connection as private_data to msg_force_tdis()

metze
This commit is contained in:
Stefan Metzmacher 2011-12-13 08:11:58 +01:00
parent f426eb13c9
commit d492a437be
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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);