s3: Fix bug 7841: WINBINDD_LOOKUPRIDS asks the wrong domain
[samba.git] / source3 / winbindd / winbindd_lookuprids.c
index f2cb8793eb74c4bc6f668e9c977d53ac9aa31bbe..51cd4d8e2ad333f64b19f0a5f90c6477d10abcb4 100644 (file)
@@ -61,7 +61,7 @@ struct tevent_req *winbindd_lookuprids_send(TALLOC_CTX *mem_ctx,
                return tevent_req_post(req, ev);
        }
 
-       domain = find_domain_from_sid_noinit(&sid);
+       domain = find_lookup_domain_from_sid(&sid);
        if (domain == NULL) {
                DEBUG(5, ("Domain for sid %s not found\n",
                          sid_string_dbg(&sid)));