summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-17 23:13:44 +0100
committerStefan Metzmacher <metze@samba.org>2008-12-18 13:32:51 +0100
commitfc31f2c5269fd405be96b9a036baf35a60141ccf (patch)
tree8e1a1a374fd892dcd4117e6dbf049b43bd3d0e13 /source4/libcli
parent4c2a113dd06ab2ba0b6faef781a7c21b4a2f3db0 (diff)
downloadsamba-fc31f2c5269fd405be96b9a036baf35a60141ccf.tar.gz
samba-fc31f2c5269fd405be96b9a036baf35a60141ccf.tar.bz2
samba-fc31f2c5269fd405be96b9a036baf35a60141ccf.zip
s4:lib/socket: socket_connect_send() and socket_connect_ev() should only wrok with addresses
metze
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/ldap/ldap_client.c2
-rw-r--r--source4/libcli/wrepl/winsrepl.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/source4/libcli/ldap/ldap_client.c b/source4/libcli/ldap/ldap_client.c
index 7f43e16c95..082f6fa3e4 100644
--- a/source4/libcli/ldap/ldap_client.c
+++ b/source4/libcli/ldap/ldap_client.c
@@ -358,7 +358,7 @@ _PUBLIC_ struct composite_context *ldap_connect_send(struct ldap_connection *con
}
ctx = socket_connect_send(conn->sock, NULL, unix_addr,
- 0, lp_resolve_context(conn->lp_ctx), conn->event.event_ctx);
+ 0, conn->event.event_ctx);
ctx->async.fn = ldap_connect_recv_unix_conn;
ctx->async.private_data = state;
return result;
diff --git a/source4/libcli/wrepl/winsrepl.c b/source4/libcli/wrepl/winsrepl.c
index 039b4dfb08..930616d211 100644
--- a/source4/libcli/wrepl/winsrepl.c
+++ b/source4/libcli/wrepl/winsrepl.c
@@ -345,8 +345,7 @@ struct composite_context *wrepl_connect_send(struct wrepl_socket *wrepl_socket,
if (composite_nomem(peer, result)) return result;
state->creq = socket_connect_send(wrepl_socket->sock, us, peer,
- 0, NULL,
- wrepl_socket->event.ctx);
+ 0, wrepl_socket->event.ctx);
composite_continue(result, state->creq, wrepl_connect_handler, state);
return result;
}