r19394: When we fail to get the list of trusted domains, make sure to return
authorGünther Deschner <gd@samba.org>
Wed, 18 Oct 2006 16:09:42 +0000 (16:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:32 +0000 (12:15 -0500)
WINBINDD_ERROR.

Guenther

source/nsswitch/winbindd_misc.c

index 84af6c964768b21f5c772fef1f390375d2970efd..f5363cad1a21447fd2eb44e498c703012ed6c6fc 100644 (file)
@@ -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, "");