s3:winbindd: fix _wbint_LookupSids() on error
commit64bb9894f1189d919a57977ede79579769bd048e
authorGregor Beck <gbeck@sernet.de>
Thu, 20 Feb 2014 12:14:31 +0000 (20 13:14 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 10 Mar 2014 15:35:52 +0000 (10 16:35 +0100)
tree30c9588648056a3fc52f0be5d48b05e55ac94bec
parent0acd76fbce92ac9d50a178ed436c3db37e97882e
s3:winbindd: fix _wbint_LookupSids() on error

We need to make sure that r->out.domains remains valid,
otherwise we're not able to marshall the response.

Note that wbint_LookupSids() has [out,ref] lsa_RefDomainList *domains,
while lsa_LookupSids() has [out,ref] lsa_RefDomainList **domains.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10458
Signed-off-by: Gregor Beck <gbeck@sernet.de>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 3413e64149702136429d7b5acaa7a52c49abf564)
source3/winbindd/winbindd_dual_srv.c