s3: Fix bug 7842: WINBIND_LOOKUPRIDS does not return the proper domain name
[metze/samba/wip.git] / source3 / winbindd / winbindd_lookuprids.c
index bd0a94601330b6b6bf174871470ff69f449c3bd6..5577ad47431b177371efeba8d760fe8bfdcf12ee 100644 (file)
@@ -84,7 +84,8 @@ struct tevent_req *winbindd_lookuprids_send(TALLOC_CTX *mem_ctx,
        }
 
        subreq = dcerpc_wbint_LookupRids_send(
-               state, ev, domain->child.binding_handle, &state->rids, &state->names);
+               state, ev, domain->child.binding_handle, &state->rids,
+               &state->domain_name, &state->names);
        if (tevent_req_nomem(subreq, req)) {
                return tevent_req_post(req, ev);
        }