summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-09-24 18:20:50 +0200
committerGünther Deschner <gd@samba.org>2009-09-24 22:55:38 +0200
commitc789d041f0e7946a3c07a5ed8d70e5cb462d1773 (patch)
tree7f4f0028c356ed6b3dcfa4c4fa8bdf0557c23847 /source3/winbindd
parent4b01e378d2a1a7e5e93573878fcdc05907e9a5bd (diff)
downloadsamba-c789d041f0e7946a3c07a5ed8d70e5cb462d1773.tar.gz
samba-c789d041f0e7946a3c07a5ed8d70e5cb462d1773.tar.bz2
samba-c789d041f0e7946a3c07a5ed8d70e5cb462d1773.zip
s3-winbindd: no reason to call winbindd_can_contact_domain() three times in query_user().
Guenther
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_rpc.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c
index 82e782b9db..ac5c3d2d93 100644
--- a/source3/winbindd/winbindd_rpc.c
+++ b/source3/winbindd/winbindd_rpc.c
@@ -493,18 +493,6 @@ static NTSTATUS query_user(struct winbindd_domain *domain,
return NT_STATUS_OK;
}
- if ( !winbindd_can_contact_domain( domain ) ) {
- DEBUG(10,("query_user: No incoming trust for domain %s\n",
- domain->name));
- return NT_STATUS_OK;
- }
-
- if ( !winbindd_can_contact_domain( domain ) ) {
- DEBUG(10,("query_user: No incoming trust for domain %s\n",
- domain->name));
- return NT_STATUS_OK;
- }
-
/* no cache; hit the wire */
result = cm_connect_sam(domain, mem_ctx, &cli, &dom_pol);