From 176d210ec7cb8f7364a742b3ee00d23ce5598a94 Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Tue, 28 Nov 2006 21:01:10 +0000 Subject: r19937: fix sending monitor message (spotted by metze). rafal (This used to be commit 16f1f075fb5c1afb959511a075e59fd908ca4b03) --- source4/libnet/libnet_rpc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source4/libnet/libnet_rpc.c b/source4/libnet/libnet_rpc.c index fe7c6fdd62..b07d88a740 100644 --- a/source4/libnet/libnet_rpc.c +++ b/source4/libnet/libnet_rpc.c @@ -330,14 +330,14 @@ static void continue_rpc_connect(struct composite_context *ctx) s->r.out.dcerpc_pipe = s->r2.out.dcerpc_pipe; /* prepare a monitor message and post it */ - msg.type = net_pipe_connected; - msg.data = NULL; - msg.data_size = 0; -/* TODO: something is really wrong here!!! */ data.host = s->r.out.dcerpc_pipe->binding->host; data.endpoint = s->r.out.dcerpc_pipe->binding->endpoint; data.transport = s->r.out.dcerpc_pipe->binding->transport; + msg.type = net_pipe_connected; + msg.data = (void*)&data; + msg.data_size = sizeof(data); + if (s->monitor_fn) s->monitor_fn(&msg); composite_done(c); -- cgit