summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/session_key.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/torture/rpc/session_key.c b/source4/torture/rpc/session_key.c
index 11f07c3b99..60a924da1d 100644
--- a/source4/torture/rpc/session_key.c
+++ b/source4/torture/rpc/session_key.c
@@ -179,12 +179,12 @@ BOOL torture_rpc_lsa_secrets(void)
return False;
}
- if (!test_lsa_OpenPolicy2(p, mem_ctx, &handle)) {
- ret = False;
- }
-
- if (!test_CreateSecret_basic(p, mem_ctx, handle)) {
- ret = False;
+ if (test_lsa_OpenPolicy2(p, mem_ctx, &handle)) {
+ if (!test_CreateSecret_basic(p, mem_ctx, handle)) {
+ ret = False;
+ }
+ } else {
+ return False;
}
talloc_free(mem_ctx);