s3: Fix bug 7841: WINBINDD_LOOKUPRIDS asks the wrong domain
authorVolker Lendecke <vl@samba.org>
Sat, 4 Dec 2010 19:31:36 +0000 (20:31 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 5 Mar 2011 13:34:40 +0000 (14:34 +0100)
(cherry picked from commit a257253f8f82bcab52508273b12cd92fadd3ba1a)

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)));