Register types rather than constructors, display structs as classes.
[jelmer/samba4-debian.git] / source / winbind / wb_sid2domain.c
index 8336449602fc3e2716319f0f5ff72a0a6c7fb1fa..fcf02cedcdef7954a946c41b24d5fa7eda6e9ae8 100644 (file)
@@ -85,7 +85,7 @@ struct composite_context *wb_sid2domain_send(TALLOC_CTX *mem_ctx,
 
        if (dom_sid_equal(service->primary_sid, sid) ||
            dom_sid_in_domain(service->primary_sid, sid)) {
-               ctx = wb_get_dom_info_send(state, service, lp_workgroup(global_loadparm),
+               ctx = wb_get_dom_info_send(state, service, lp_workgroup(service->task->lp_ctx),
                                           service->primary_sid);
                if (ctx == NULL) goto failed;
                ctx->async.fn = sid2domain_recv_dom_info;