From 79c6572256a01279d9e4f0b436d334f4fd739866 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 21 Oct 2010 23:31:41 +0200 Subject: tsocket: let tstream_inet_tcp_connect_recv() optionally return the used local address tstream_inet_tcp_connect_send() usually only gets no local port number and it may use the wildcard address '0.0.0.0' or '::'. tstream_inet_tcp_connect_recv() provides the used local address and port which are used on the wire. metze --- source4/libcli/wrepl/winsrepl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/libcli/wrepl') diff --git a/source4/libcli/wrepl/winsrepl.c b/source4/libcli/wrepl/winsrepl.c index 83da21700c..842a35175e 100644 --- a/source4/libcli/wrepl/winsrepl.c +++ b/source4/libcli/wrepl/winsrepl.c @@ -248,7 +248,7 @@ static void wrepl_connect_done(struct tevent_req *subreq) int sys_errno; ret = tstream_inet_tcp_connect_recv(subreq, &sys_errno, - state, &state->stream); + state, &state->stream, NULL); if (ret != 0) { NTSTATUS status = map_nt_error_from_unix(sys_errno); tevent_req_nterror(req, status); -- cgit