Author: mimir Date: 2006-11-28 21:01:10 +0000 (Tue, 28 Nov 2006) New Revision: 19937
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19937 Log: fix sending monitor message (spotted by metze). rafal Modified: branches/SAMBA_4_0/source/libnet/libnet_rpc.c Changeset: Modified: branches/SAMBA_4_0/source/libnet/libnet_rpc.c =================================================================== --- branches/SAMBA_4_0/source/libnet/libnet_rpc.c 2006-11-28 18:51:49 UTC (rev 19936) +++ branches/SAMBA_4_0/source/libnet/libnet_rpc.c 2006-11-28 21:01:10 UTC (rev 19937) @@ -330,14 +330,14 @@ 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);