summaryrefslogtreecommitdiffstats
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-03-11 15:05:37 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-03-25 00:45:28 +0100
commitea53ba15ee579c4368e7bdae2875c6a3af73afa3 (patch)
tree74c1b062296403695cf4f86e8d7a52e83bdf017c /source4/torture/rpc
parent95d9f163625b99687fc996edd829373034941dd9 (diff)
downloadsamba-ea53ba15ee579c4368e7bdae2875c6a3af73afa3.tar.gz
samba-ea53ba15ee579c4368e7bdae2875c6a3af73afa3.tar.xz
samba-ea53ba15ee579c4368e7bdae2875c6a3af73afa3.zip
s4:torture/rpc: fix error path in torture_leave_domain()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/testjoin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/torture/rpc/testjoin.c b/source4/torture/rpc/testjoin.c
index d2b25ed1198..5ee2c2ac9f9 100644
--- a/source4/torture/rpc/testjoin.c
+++ b/source4/torture/rpc/testjoin.c
@@ -710,8 +710,7 @@ _PUBLIC_ void torture_leave_domain(struct torture_context *torture, struct test_
status = dcerpc_samr_DeleteUser_r(join->p->binding_handle, join, &d);
if (!NT_STATUS_IS_OK(status)) {
printf("DeleteUser failed\n");
- }
- if (!NT_STATUS_IS_OK(d.out.result)) {
+ } else if (!NT_STATUS_IS_OK(d.out.result)) {
printf("Delete of machine account %s failed\n",
join->netbios_name);
} else {