summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-11-28 21:01:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:38 -0500
commit176d210ec7cb8f7364a742b3ee00d23ce5598a94 (patch)
tree1b246a20dd94f8278d8518b2a6fb3823a0b2dc51
parent542729273c2356abe3637bd65463a20b87b11404 (diff)
downloadsamba-176d210ec7cb8f7364a742b3ee00d23ce5598a94.tar.gz
samba-176d210ec7cb8f7364a742b3ee00d23ce5598a94.tar.bz2
samba-176d210ec7cb8f7364a742b3ee00d23ce5598a94.zip
r19937: fix sending monitor message (spotted by metze).
rafal (This used to be commit 16f1f075fb5c1afb959511a075e59fd908ca4b03)
-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);