summaryrefslogtreecommitdiff
path: root/source3/smbd/conn_msg.c
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/conn_msg.c
parentf426eb13c9988d05b948749f379df62c3d5bd0a7 (diff)
downloadsamba-d492a437beb0d2ba03984a4b4564c36987778428.tar.gz
s3:smbd/conn_msg: pass smbd_server_connection as private_data to msg_force_tdis()
metze
Diffstat (limited to 'source3/smbd/conn_msg.c')
-rw-r--r--source3/smbd/conn_msg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/conn_msg.c b/source3/smbd/conn_msg.c
index b0c968a6807..96171e2aa1c 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;
}