s3:winbindd: fix _wbint_LookupSids() on error
commit3413e64149702136429d7b5acaa7a52c49abf564
authorGregor Beck <gbeck@sernet.de>
Thu, 20 Feb 2014 12:14:31 +0000 (20 13:14 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 21 Feb 2014 14:59:28 +0000 (21 15:59 +0100)
treeb055aafa9da453b392cb07c1f28d43e44dcec168
parent33f10d06baf44e31d558bc5bd926c886915322cc
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>
source3/winbindd/winbindd_dual_srv.c