1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3:smbd/clode: pass smbd_server_connection as private_data to msg_close_file()

metze
This commit is contained in:
Stefan Metzmacher 2011-12-12 15:45:07 +01:00
parent d1e0997614
commit 4d44f879e1
2 changed files with 4 additions and 4 deletions

View File

@ -1138,13 +1138,13 @@ void msg_close_file(struct messaging_context *msg_ctx,
struct server_id server_id,
DATA_BLOB *data)
{
struct smbd_server_connection *sconn;
files_struct *fsp = NULL;
struct share_mode_entry e;
struct smbd_server_connection *sconn =
talloc_get_type(private_data,
struct smbd_server_connection);
sconn = msg_ctx_to_sconn(msg_ctx);
if (sconn == NULL) {
DEBUG(1, ("could not find sconn\n"));
return;
}

View File

@ -3137,7 +3137,7 @@ void smbd_process(struct tevent_context *ev_ctx,
/* register our message handlers */
messaging_register(sconn->msg_ctx, NULL,
MSG_SMB_FORCE_TDIS, msg_force_tdis);
messaging_register(sconn->msg_ctx, NULL,
messaging_register(sconn->msg_ctx, sconn,
MSG_SMB_CLOSE_FILE, msg_close_file);
/*