summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-13 08:11:58 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-13 12:36:35 +0100
commitd492a437beb0d2ba03984a4b4564c36987778428 (patch)
treefefc8ef9ceda4b448f3517331fd4b2d9f1e6d296 /source3/smbd
parentf426eb13c9988d05b948749f379df62c3d5bd0a7 (diff)
downloadsamba-d492a437beb0d2ba03984a4b4564c36987778428.tar.gz
samba-d492a437beb0d2ba03984a4b4564c36987778428.tar.bz2
samba-d492a437beb0d2ba03984a4b4564c36987778428.zip
s3:smbd/conn_msg: pass smbd_server_connection as private_data to msg_force_tdis()
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/conn_msg.c6
-rw-r--r--source3/smbd/process.c2
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);