diff options
-rw-r--r-- | source4/torture/rpc/session_key.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/torture/rpc/session_key.c b/source4/torture/rpc/session_key.c index 1d02741994..d70fc95b18 100644 --- a/source4/torture/rpc/session_key.c +++ b/source4/torture/rpc/session_key.c @@ -180,7 +180,10 @@ BOOL torture_rpc_lsa_secrets(struct torture_context *torture) } if (test_lsa_OpenPolicy2(p, mem_ctx, &handle)) { - if (!test_CreateSecret_basic(p, mem_ctx, handle)) { + if (!handle) { + printf("OpenPolicy2 failed. This test cannot run against this server\n"); + ret = False; + } else if (!test_CreateSecret_basic(p, mem_ctx, handle)) { ret = False; } } else { |