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)
committerJeremy Allison <jra@samba.org>
Mon, 6 Dec 2010 19:33:05 +0000 (20:33 +0100)
source3/winbindd/winbindd_lookuprids.c

index 6e3d5c5ece83f34e6318a60339b4b3aef54c2150..bd0a94601330b6b6bf174871470ff69f449c3bd6 100644 (file)
@@ -62,7 +62,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)));