summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-05-07 18:09:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:05:42 -0500
commitceb1d661727a14fef54ce210d0d97f4417f1b132 (patch)
treec7a165501550d9beb12d7e4d2043090f939c09cd /source4/torture/rpc
parentbfbc269d0d8b06537c540d4052bf8e1b47d454e5 (diff)
downloadsamba-ceb1d661727a14fef54ce210d0d97f4417f1b132.tar.gz
samba-ceb1d661727a14fef54ce210d0d97f4417f1b132.tar.bz2
samba-ceb1d661727a14fef54ce210d0d97f4417f1b132.zip
r15499: This test can't run if the remote server won't let us open a policy handle.
Andrew Bartlett (This used to be commit ca0ffb1218f3c2482b6b04463e627accd03d8cf9)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/session_key.c5
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 {