r26268: Avoid more use of global_loadparm - put lp_ctx in smb_server and wbsrv_connec...
[jelmer/samba4-debian.git] / source / winbind / wb_dom_info.c
index 13d446897e3f84d634350b9f7164b526181ba24d..99538bfb0017e4776fb6762dca7e3bcc4cc05d45 100644 (file)
@@ -68,7 +68,8 @@ struct composite_context *wb_get_dom_info_send(TALLOC_CTX *mem_ctx,
        if (dom_sid == NULL) goto failed;
 
        ctx = finddcs_send(mem_ctx, domain_name, NBT_NAME_LOGON, 
-                          dom_sid, lp_name_resolve_order(global_loadparm), 
+                          dom_sid, 
+                          lp_name_resolve_order(service->task->lp_ctx), 
                           service->task->event_ctx, 
                           service->task->msg_ctx);
        if (ctx == NULL) goto failed;