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:
committed by
Stefan Metzmacher
parent
9d0ff47be0
commit
459e1466a4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user