summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_rpc.c8
1 files 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);