1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-02 00:23:50 +03:00

r26376: Add context for libcli_resolve.

This commit is contained in:
Jelmer Vernooij
2007-12-10 18:41:19 +01:00
committed by Stefan Metzmacher
parent 9d0ff47be0
commit 459e1466a4
41 changed files with 200 additions and 123 deletions

View File

@@ -35,6 +35,7 @@
#include "auth/gensec/gensec.h"
#include "system/time.h"
#include "param/param.h"
#include "libcli/resolve/resolve.h"
/**
@@ -355,7 +356,7 @@ struct composite_context *ldap_connect_send(struct ldap_connection *conn,
}
ctx = socket_connect_send(conn->sock, NULL, unix_addr,
0, lp_name_resolve_order(conn->lp_ctx), conn->event.event_ctx);
0, lp_resolve_context(conn->lp_ctx), conn->event.event_ctx);
ctx->async.fn = ldap_connect_recv_unix_conn;
ctx->async.private_data = state;
return result;
@@ -368,7 +369,7 @@ struct composite_context *ldap_connect_send(struct ldap_connection *conn,
}
ctx = socket_connect_multi_send(state, conn->host, 1, &conn->port,
lp_name_resolve_order(conn->lp_ctx), conn->event.event_ctx);
lp_resolve_context(conn->lp_ctx), conn->event.event_ctx);
if (ctx == NULL) goto failed;
ctx->async.fn = ldap_connect_recv_tcp_conn;