r19937: fix sending monitor message (spotted by metze).
authorRafal Szczesniak <mimir@samba.org>
Tue, 28 Nov 2006 21:01:10 +0000 (21:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:28:38 +0000 (14:28 -0500)
rafal

source/libnet/libnet_rpc.c

index fe7c6fdd62bfdd333f1e213faf783e1cef11237a..b07d88a74092b27e52788fc8021d598f57280287 100644 (file)
@@ -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);