summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-03-25 10:59:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:12 -0500
commit4958e97c767f62d8b1f41b7c33f78a00be78d849 (patch)
tree64345b5234d0722c8e2ca67b834aede70b550170
parentc7ee532e46a515bb2c3ed8783c1c98cb13bf2caa (diff)
downloadsamba-4958e97c767f62d8b1f41b7c33f78a00be78d849.tar.gz
samba-4958e97c767f62d8b1f41b7c33f78a00be78d849.tar.bz2
samba-4958e97c767f62d8b1f41b7c33f78a00be78d849.zip
r14712: Do not proceed in event of failure to obtain a policy handle.
This makes the log results much easier to understand. Andrew Bartlett (This used to be commit 8566515a51d9b63c40fd52cb138e9ec8025cd6c2)
-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);