summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-07 17:38:24 -0700
committerVolker Lendecke <vl@samba.org>2010-09-08 18:28:16 +0200
commit2226347182322c845ca382142299ad9d1bf49abd (patch)
tree3b17df6298d8e617ca205810af468b2e1abd8294 /source3
parentbcad45ed432b67715cb08f6555f218472f3977eb (diff)
downloadsamba-2226347182322c845ca382142299ad9d1bf49abd.tar.gz
samba-2226347182322c845ca382142299ad9d1bf49abd.tar.bz2
samba-2226347182322c845ca382142299ad9d1bf49abd.zip
s3: Simplify cm_connect_sam a bit
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_cm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index c5ceb6cc69..3f6d02ec29 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -2081,11 +2081,7 @@ NTSTATUS cm_connect_sam(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
char *domain_name = NULL;
if (sid_check_is_domain(&domain->sid)) {
- result = open_internal_samr_conn(mem_ctx, domain, cli, sam_handle);
- if (!NT_STATUS_IS_OK(result)) {
- return result;
- }
- return NT_STATUS_OK;
+ return open_internal_samr_conn(mem_ctx, domain, cli, sam_handle);
}
result = init_dc_connection_rpc(domain);