summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_misc.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-10-18 16:09:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:32 -0500
commit5afaa37662f09425b1391600a7e2328f20c04a13 (patch)
treeef568e0dbca16593215073af05d5a76098c2708f /source3/nsswitch/winbindd_misc.c
parentedba79e500ff8edeca104fdd616cea444ce93715 (diff)
downloadsamba-5afaa37662f09425b1391600a7e2328f20c04a13.tar.gz
samba-5afaa37662f09425b1391600a7e2328f20c04a13.tar.bz2
samba-5afaa37662f09425b1391600a7e2328f20c04a13.zip
r19394: When we fail to get the list of trusted domains, make sure to return
WINBINDD_ERROR. Guenther (This used to be commit 6089b3007bf92904ca4562d21958d7922143dbcb)
Diffstat (limited to 'source3/nsswitch/winbindd_misc.c')
-rw-r--r--source3/nsswitch/winbindd_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_misc.c b/source3/nsswitch/winbindd_misc.c
index 84af6c9647..f5363cad1a 100644
--- a/source3/nsswitch/winbindd_misc.c
+++ b/source3/nsswitch/winbindd_misc.c
@@ -127,7 +127,7 @@ enum winbindd_result winbindd_dual_list_trusted_domains(struct winbindd_domain *
if (!NT_STATUS_IS_OK(result)) {
DEBUG(3, ("winbindd_dual_list_trusted_domains: trusted_domains returned %s\n",
nt_errstr(result) ));
- num_domains = 0;
+ return WINBINDD_ERROR;
}
extra_data = talloc_strdup(state->mem_ctx, "");