summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2012-09-28 18:04:07 +0200
committerGünther Deschner <gd@samba.org>2012-09-29 00:34:03 +0200
commit837f47d630618fb382cfd49f5fb14e9af35e82fa (patch)
tree5a874a773301a599bfe9e56272cdcf7dc4e52b9d /source3
parente792a44c34e7767f21f8a3dbcdf41e8416349da7 (diff)
downloadsamba-837f47d630618fb382cfd49f5fb14e9af35e82fa.tar.gz
samba-837f47d630618fb382cfd49f5fb14e9af35e82fa.tar.bz2
samba-837f47d630618fb382cfd49f5fb14e9af35e82fa.zip
s3-winbindd: Adjust error code loop logic in rpc_trusted_domains().
Guenther Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Sat Sep 29 00:34:04 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c
index a580b796c3..a3faf422fc 100644
--- a/source3/winbindd/winbindd_rpc.c
+++ b/source3/winbindd/winbindd_rpc.c
@@ -987,7 +987,7 @@ NTSTATUS rpc_trusted_domains(TALLOC_CTX *mem_ctx,
&dom_list_ex,
(uint32_t) -1,
&result);
- if (NT_STATUS_IS_OK(status) && NT_STATUS_IS_OK(result) &&
+ if (NT_STATUS_IS_OK(status) && !NT_STATUS_IS_ERR(result) &&
dom_list_ex.count > 0) {
count += dom_list_ex.count;
has_ex = true;