s3:winbindd: fix _wbint_LookupSids() on error
commit099a02a11db054fb2f42c42ded40ec4bce9b6fb9
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:32 +0000 (10 16:35 +0100)
treec7337a3be6aa073e2a1ab4acffdbd9b10b7a6a54
parentcc754e627329cdeef5b1c2ce1d8490eec07d7753
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