mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
r26669: Janitorial: Remove uses of global_loadparm.
(This used to be commit 50c46160d9
)
This commit is contained in:
committed by
Stefan Metzmacher
parent
a5301d2204
commit
2c8c9a5355
@ -345,7 +345,7 @@ static void ldapsrv_accept(struct stream_connection *c)
|
||||
conn->connection = c;
|
||||
conn->service = ldapsrv_service;
|
||||
conn->sockets.raw = c->socket;
|
||||
conn->lp_ctx = global_loadparm;
|
||||
conn->lp_ctx = ldapsrv_service->task->lp_ctx;
|
||||
|
||||
c->private = conn;
|
||||
|
||||
@ -523,6 +523,8 @@ static void ldapsrv_task_init(struct task_server *task)
|
||||
ldap_service = talloc_zero(task, struct ldapsrv_service);
|
||||
if (ldap_service == NULL) goto failed;
|
||||
|
||||
ldap_service->task = task;
|
||||
|
||||
ldap_service->tls_params = tls_initialise(ldap_service, task->lp_ctx);
|
||||
if (ldap_service->tls_params == NULL) goto failed;
|
||||
|
||||
|
Reference in New Issue
Block a user