s3-winbindd: Adjust error code loop logic in rpc_trusted_domains().
authorGünther Deschner <gd@samba.org>
Fri, 28 Sep 2012 16:04:07 +0000 (18:04 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 28 Sep 2012 22:34:03 +0000 (00:34 +0200)
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

source3/winbindd/winbindd_rpc.c

index a580b796c353f15d1c3b02f77ebd25e20eb9ca86..a3faf422fceca071bab14585da5aba72afdc3729 100644 (file)
@@ -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;