From 57ebc8af8061e1a81a46300154ac6c4d489b302a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 7 Jul 2010 14:27:04 +0200 Subject: s3-winbind: Set status before we leave in some msrpc functions. --- source3/winbindd/winbindd_msrpc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/winbindd') diff --git a/source3/winbindd/winbindd_msrpc.c b/source3/winbindd/winbindd_msrpc.c index 780a675f40..714e657012 100644 --- a/source3/winbindd/winbindd_msrpc.c +++ b/source3/winbindd/winbindd_msrpc.c @@ -438,6 +438,8 @@ static NTSTATUS msrpc_query_user(struct winbindd_domain *domain, if ( !winbindd_can_contact_domain( domain ) ) { DEBUG(10,("query_user: No incoming trust for domain %s\n", domain->name)); + /* Tell the cache manager not to remember this one */ + status = NT_STATUS_SYNCHRONIZATION_REQUIRED; goto done; } @@ -562,6 +564,8 @@ static NTSTATUS msrpc_lookup_useraliases(struct winbindd_domain *domain, if (!winbindd_can_contact_domain(domain)) { DEBUG(10,("msrpc_lookup_useraliases: No incoming trust for domain %s\n", domain->name)); + /* Tell the cache manager not to remember this one */ + status = NT_STATUS_SYNCHRONIZATION_REQUIRED; goto done; } -- cgit